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 Answer
if the serviceworker was already loaded, may be you need to change the version and he will refresh.
4 Comments
RK1605
But why few of the files load and few of them fail? Is this anyway related to network?
Milooz
There's a lot of reason. Are you sure of your files, have they all the good url?
RK1605
yes, the image loads when I hit the url in the browser
Milooz
you have an example?