-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Workbox Runtime Cache Not Working. #81
Comments
https://dummyjson.com/*
// when this is cached - my articles also showing the images, who is saved in public-folder. |
add those routes to the |
The routes are in the endpoint which I'm trying to retrieve the resource or the page route that is calling the endpoint? |
I had tried something similar to this using
But it still doesn't work for me |
Hey again! I'm a amateur, but have worked a lot to get the caching to work.1 I have made two reproduction-repos: The first isn't a good example, but the second is a clean There is two main challenges:
The RuntimeCaching isn't solving the problem with (1) loading the frontpage of the homepage. That is one thing I have learned. It can helps with some images (in 1 & 2), thats the only thing. Footnotes |
Hey thanks for the 2 repo I'll take a look. You mentioned the challenges to Get the root, or index-page to cache. What if I want to cache the content from a non root page? Example |
Hei @dextersiah Thanks for asking a amateur!
The regex pattern is Two imagesFirst who shows after frontpage-loadNow you don't see the cache name of the Second who shows after content-visitNow you see the cache name of the How to know the
|
Thanks for the effort to explain @lovkyndig I'll take a look and try reimplement this on my project. 👍 |
I have this simple config here in
nuxt.config.ts
and a simple fetch data using
useFetch
composable inside my /fetch pageWhenever I load the page and navigate back to home then proceed to set to offline mode then go back to
/fetch
page. I just receive this error on the console.net::ERR_INTERNET_DISCONNECTED
Am I missing any config or is this not how the caching behavior is supposed to work?
Additional Notes
npm run build
andnode .output/server/index.mjs
The text was updated successfully, but these errors were encountered: