-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
Cache Invalidation #197
Comments
(I hope that's correct thread, I believe it is) |
Yes, I have this working perfectly. On AWS I never cache it, and auto update every two minutes and reload my app. Btw this is super fast on the reload since it's after the new worker caches everything! Love this plugin :) |
😎 |
@NekR Thanks for the explanations here and in #127. It makes sense why you don't want to add a hash to the service worker JS filename. I'm still going to cache this file with Cloudflare, but I'm just going to purge the Cloudflare cache after uploading to S3. I already do this with my |
@ndbroadbent that's probably okay, I'm not sure actually. Let us know if works or not for you 👍 |
Sorry if this has been asked before, but I'm trying to figure out the best way to push new releases and have the service worker be updated.
Right now, I upload all of webpack's output to S3 and then serve it through cloudfront. All outputted files have a hash in front of them, except the sw is always the same filename.
Should I simply make it so that the serviceworker has a hashed filename as well, or make it so that it is never cached so that any page load grabs the latest version of it? I hope this makes sense.
The text was updated successfully, but these errors were encountered: