0

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 1

0

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

Sign up to request clarification or add additional context in comments.

4 Comments

But why few of the files load and few of them fail? Is this anyway related to network?
There's a lot of reason. Are you sure of your files, have they all the good url?
yes, the image loads when I hit the url in the browser
you have an example?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.