Distinguishing cached vs. network HTML requests in a Service Worker

Jeremy posted a wonderful write-up of how he’s tackling the ‘Lie-Fi problem’ with his Service Worker. It’s also a great read if you’re looking for tips on refactoring a Service Worker. He ended with a wish:
What I’d reall…


This content originally appeared on Welcome to my blog on Trys Mudford and was authored by Welcome to my blog on Trys Mudford

Jeremy posted a wonderful write-up of how he’s tackling the ‘Lie-Fi problem’ with his Service Worker. It’s also a great read if you’re looking for tips on refactoring a Service Worker. He ended with a wish: What I’d really like is some way to know—on the client side—whether or not the currently-loaded page came from a cache or from a network. Challenge accepted! Disclaimer, this is a proof of concept created in an evening, and probably not a production-ready solution!


This content originally appeared on Welcome to my blog on Trys Mudford and was authored by Welcome to my blog on Trys Mudford


Print Share Comment Cite Upload Translate Updates
APA

Welcome to my blog on Trys Mudford | Sciencx (2019-05-09T00:00:00+00:00) Distinguishing cached vs. network HTML requests in a Service Worker. Retrieved from https://www.scien.cx/2019/05/09/distinguishing-cached-vs-network-html-requests-in-a-service-worker/

MLA
" » Distinguishing cached vs. network HTML requests in a Service Worker." Welcome to my blog on Trys Mudford | Sciencx - Thursday May 9, 2019, https://www.scien.cx/2019/05/09/distinguishing-cached-vs-network-html-requests-in-a-service-worker/
HARVARD
Welcome to my blog on Trys Mudford | Sciencx Thursday May 9, 2019 » Distinguishing cached vs. network HTML requests in a Service Worker., viewed ,<https://www.scien.cx/2019/05/09/distinguishing-cached-vs-network-html-requests-in-a-service-worker/>
VANCOUVER
Welcome to my blog on Trys Mudford | Sciencx - » Distinguishing cached vs. network HTML requests in a Service Worker. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2019/05/09/distinguishing-cached-vs-network-html-requests-in-a-service-worker/
CHICAGO
" » Distinguishing cached vs. network HTML requests in a Service Worker." Welcome to my blog on Trys Mudford | Sciencx - Accessed . https://www.scien.cx/2019/05/09/distinguishing-cached-vs-network-html-requests-in-a-service-worker/
IEEE
" » Distinguishing cached vs. network HTML requests in a Service Worker." Welcome to my blog on Trys Mudford | Sciencx [Online]. Available: https://www.scien.cx/2019/05/09/distinguishing-cached-vs-network-html-requests-in-a-service-worker/. [Accessed: ]
rf:citation
» Distinguishing cached vs. network HTML requests in a Service Worker | Welcome to my blog on Trys Mudford | Sciencx | https://www.scien.cx/2019/05/09/distinguishing-cached-vs-network-html-requests-in-a-service-worker/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.