Skip to content
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

Precache issue after new build #451

Open
rinu opened this issue Apr 15, 2021 · 3 comments · May be fixed by #454
Open

Precache issue after new build #451

rinu opened this issue Apr 15, 2021 · 3 comments · May be fixed by #454

Comments

@rinu
Copy link

rinu commented Apr 15, 2021

To my understanding the precache feature of workbox works as a cache first, not a network first. If not, the following is nonsense.

Every time I make a new build of my project and deploy it live, users have errors because assets could not be found.
It's difficult to pinpoint the issue but what I think is happening is the homepage (start_url) is being precached. So a request is never made to the server to know where the new /_nuxt/ assets are and at the same time the old assets caches have expired.

I've attempted removing the precaching but then the site doesn't work offline anymore. Any other ideas what to do or test?

I'm using the latest available version of nuxt and nuxt pwa module.

@rinu
Copy link
Author

rinu commented Apr 19, 2021

For some reason removing precaching worked now. It would be nice if there was an easy way to just disable all precaching.

@rinu rinu linked a pull request Apr 20, 2021 that will close this issue
@rinu
Copy link
Author

rinu commented Apr 21, 2021

As a temporary workaround I have reverted to using version 3.2.0.

@FreekVR
Copy link

FreekVR commented Apr 23, 2021

Related to network first support also listed in #406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants