HubSpot / offline

Automatically display online/offline indication to your users

Home Page:http://github.hubspot.com/offline/docs/welcome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Service Worker support

staminna opened this issue · comments

commented

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?

commented

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.