Joaquín Sánchez
Joaquín Sánchez
I haven't tried Vite MPA, I think you can register multiple pwa plugins, the problem is about configuring each sw (I guess you want a sw per entry point, and...
Maybe you can provide a minimal vite mpa app reproduction and so we can play with it.
If we want to cache only visited pages you need to use runtime caching with network first. You also need to disable injection point. Your app Will not work when...
Dont version runtime caching cache and use proper eviction like max age or max entries, pwa plugin cannot do anything about this issue, check workbox options or move to custom...
There are a lot of modules at workbox, this repo is just a wrapper for workbox-build: runtime caching strategy when creating new cache version cannot be controller by `cleanupOutdatedCaches`, this...
check the console in the browser, should have an error
Your app is huge, did you await sw precaching finish? Offline will work only when the sw is installed and activated (before activated, the sw needs to download and cache...
check your cache headers: https://vite-pwa-org.netlify.app/deployment/#cache-control
You need to allow cache some responses, having some restrictive cache headers in some files will prevent workbox to intercept those requests: for example, if you open devtools > Network...
You need to exclude `/api` and `/oauth2` from sw interception and deal with offline when using both calls, in dev server the plugin should intercept only `/`, for prod you...