HubSpot/offline

Service Worker support

staminna opened this issue · 3 comments

Hi

I am using Google's Read Through Service worker example, although it works fine without Service Worker's code, offline.js doesn't detect when the connection is lost and SW code kicks in.
Please find the code files attached in this google's github repository link

Hi.

I'm experiencing the same issue with service worker.

It works fine when I load it in online mode, but if I go offline and reload the URL, the first status in "on".

@staminna, did you found a work around?

Obviously, you should filter in Service Worker fetch to the URL, which you're hitting with Offline, otherwise, SW will return cached reply and Offline will think that everything is ok.