-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Offline not working and error caught (in promise) non-precached-url: non-precached-url :: [{"url":"/"}] #16
Comments
@ttijl you're using |
@ttijl check https://docs.astro.build/en/guides/server-side-rendering/#hybrid-rendering EDIT: adding |
Thank you, that works. |
@ttijl the problem is precaching, check this issue, you'll need to add a custom sw: GoogleChrome/workbox#1767 You can also check this PR patching workbox-preload module to make the update quicker, you should check how to apply the patch using yarn: vite-pwa/docs#41 |
Custom SW is only possible with InjectManifest right? And that does not work with Astro? I also tried this: https://vite-pwa-org.netlify.app/workbox/inject-manifest.html#network-first-strategy |
yes
why not? it should work
and? |
Hello, when installing @vite-pwa/astro im having this issue. It seems like it isnt working offline and im getting this error:
caught (in promise) non-precached-url: non-precached-url :: [{"url":"/"}]
.here is a minimal example of the issue. https://github.com/ttijl/astro-pwa-issue
The text was updated successfully, but these errors were encountered: