You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ServiceWorker needs to cache just requests that came from the offline page, and not from any other page. Possible solution: event.request.headers.get('referrer')
Offline page might contain things we do not want to load. e.g. user defines the same page for online and offline. The page contains analytics code. So now every visit to the page would count as two (page + iframe)
The text was updated successfully, but these errors were encountered:
Consider loading offline page in a hidden iframe, and capturing all request from that iframe in Service Worker and cache them.
As suggested by @slightlyoff and @jeffposnick:
https://twitter.com/slightlylate/status/638477704724115456
Potential complications:
The text was updated successfully, but these errors were encountered: