Joaquín Sánchez
Joaquín Sánchez
@ttijl the problem is precaching, check this issue, you'll need to add a custom sw: https://github.com/GoogleChrome/workbox/issues/1767 You can also check this PR patching workbox-preload module to make the update quicker,...
> Custom SW is only possible with InjectManifest right? yes > And that does not work with Astro? why not? it should work > I also tried this: https://vite-pwa-org.netlify.app/workbox/inject-manifest.html#network-first-strategy and?
provide minimal repro
Page refresh with pwa dev options enabled will not work, the sw will redirect to navigate fallback page. The workbox warning can be rmeoved enabling suppressWarning in devOptions, ot os...
@zoxon weird, can you provide a minimal repro? I'll check it later...
@zoxon tested with latest Astro version and it is working properly
@zoxon can you check https://github.com/vite-pwa/astro/issues/16#issuecomment-1531434408 ?
@Clarkkkk if you set the fallback to null, offline will not work. I'll try to add similar patch to this added to Vitepress integration ( when I have time ):...
@Clarkkkk it seems a problem with Astro 3, the pwa integration hook being called before Astro builds the dist folder (check there is a workbox-build warning about regex): 
@Clarkkkk I don't think so, first [build] at the bottom should be before the workbox warning: 