-
Notifications
You must be signed in to change notification settings - Fork 174
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
Precached page '/' not updating after new build is deployed #381
Comments
I also encountered this problem. Google docs say, that Maybe some randomized revision would help? Problem is, that we may get some non-deterministic behavior - service worker is not updated immadietely, when you open the page. It may take some time, especially if you have other tabs open, that it controls. So you would get the old version until the service worker is running. It would be nice to be able to fine-tune precaching, so we'd be able to remove |
Exactly the problem is because of |
Ok guys, I have some temporary solution for ya! Do not change default
By default it's |
I tried the fix proposed by @kedrzu which works for the |
I created a PR with proposed fix, but it's not merged yet. In my own project I created my own
It's exactly same as original https://github.com/nuxt-community/pwa-module/blob/master/lib/workbox/templates/sw.js, but it lacks the part responsible for precaching. Then added in config:
|
Seems to be caused when trying to fix this issue: #372 |
I used this code on the loading screen as a workaround (unregister service worker and hard reload to use new serviceWorker):
|
Hi. This issue should be gone with 3.3.0. |
There is yet one more known issue tracking here: #406 |
Recently this problem appeared in our pwa. I had all default settings in
workbox
pwa module and everything worked fine, but now it seems root page (/) is precached, it is exists in CacheStorageworkbox-precache-v2-...
After unregistering manually service worker this problem is gone, but only for the time before next page reload.
I can solve issue by manually deleting this CacheStorage, but it's not the solution because our users won't do it manually.
Question is, by which way sw can force delete this cache for all users ? Or is there a way to disable precache of this page? Maybe there is another way to solve this?
Also we have cloudflare cache, could it be a problem?
Also have this warning:
Workbox is precaching URLs without revision info: /
but updated pwa-module to the latest version.The text was updated successfully, but these errors were encountered: