Few JS/CSS fail to load in offline mode while using service worker

136 views Asked by At

Have been trying to test service worker and it works fine while testing on localhost. The same code has been deployed on server and few of the JS and CSS files are not loading in offline mode. But when the page is continuously refreshed, everything loads fine. What could be the probable cause for the issue?

1

There are 1 answers

4
Milooz On

if the serviceworker was already loaded, may be you need to change the version and he will refresh.