-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[Question] Service Worker configuration with Express #2412
Comments
To be more specific, I want to configure my service-worker.js to change these values:
|
What kind of configuration change would this entail? If this is fixable by providing configuration, I think we might need to expose it as an optional key in |
I think the best option for users who don't want to/can't serve their There's support for excluding certain files and/or modifying the navigation fallback HTML that's available if you're willing to |
Okay, that’s reasonable. Thanks for replying! |
Ok, thanks. I will modify manually with a script after build ;) |
You can just remove the service worker registration. I don't see why you'd need to modify the build output. |
If I remove the sw registration, Do I need to create my own sw? Thanks! |
Hi, I would like to know what is the best approach to disable the cache for some files in CRA.
I have configured my CRA with express like this:
My problem is that sw, is caching the response, and the ensureAuthenticated middleware is not triggering. How can I disable service-worker for this file?
Thanks!
The text was updated successfully, but these errors were encountered: