pwa-module icon indicating copy to clipboard operation
pwa-module copied to clipboard

Precache issue after new build

Open rinu opened this issue 3 years ago • 3 comments

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 avatar Apr 15 '21 14:04 rinu

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

rinu avatar Apr 19 '21 14:04 rinu

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

rinu avatar Apr 21 '21 12:04 rinu

Related to network first support also listed in #406

FreekVR avatar Apr 23 '21 08:04 FreekVR