-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Exclude index.html from serviceworker.js caching #7121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What's the contents of the generated |
content of https://my-website.com/service-worker.js
|
My /precache-manifest.ac9fd9dd32e366a33425e65753b6e947.js actually contains the entry:
I tried deleting
From serviceworker.js, but that didn't solve the issue |
Found a solution (only works if you have ejected): You can go into /config/webpack.config.js and change the default arguments for GenerateSW() to the following:
I will close this, thank you anyways! |
This is maybe slightly off-topic, but I'm currently going crazy over this and cannot find any help on google.
I have read https://developers.google.com/web/fundamentals/primers/service-workers/ but their structure is quite different.
I'm trying to exclude caching of index.html from the service worker. I don't care about offline usage.
I have ejected create-react-app half a year ago, but have changed nothing in my serviceworker.js file.
My serviceWorker.js:
Thanks for any help in advance!
The text was updated successfully, but these errors were encountered: