vite-pwa / nuxt

Zero-config PWA Plugin for Nuxt 3
https://vite-pwa-org.netlify.app/frameworks/nuxt
MIT License
454 stars 22 forks source link

How to disable caching "_nuxt" folder due to "The server responded with a status of 429" after every update!!! #112

Open makamekm opened 10 months ago

makamekm commented 10 months ago

There is an issue after every update. The SW does not send new files from _nuxt folder and do not recache them. The clients need to restart the browser completely to make it work several times.

userquin commented 10 months ago

Add registerType: 'autoUpdate' to you PWA options, default value is prompt, and so a new sw version will be awaiting for user/client SKIP_WAITING message:

userquin commented 10 months ago

_nuxt folder contains all client assets, by default PWA module will precache all assets, if you want to disable precaching then add workbox.injectionPoint = undefined (use object notation) in your PWA options.

makamekm commented 10 months ago

This is the configuration. Do I miss something? image

userquin commented 10 months ago

Can you provide a minimal reproduction?