-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
api requests are not cached #43
Comments
@prstwo Beware, if
runtimeCaching: [{
urlPattern: 'https://api.faresbazar.com/api-frontend/*',
handler: 'NetworkFirst',
options: {
cacheName: 'my-api-cache',
expiration: { maxEntries: 500, maxAgeSeconds: 60 * 60 * 24, purgeOnQuotaError: true },
cacheableResponse: { statuses: [0, 200] }
}
}] |
Remember to also include some offline handle logic when using nuxt fetch stuff (check error and use |
Same issue here. Nothing above is working |
hi,
Thanks for your great plugin. I have challenge with caching api requests.
vite-pwa/nuxt is installed on a nuxt 3 project and data is fetched based on api reqest. I want whenever a user get offline, page data get data from the cached api. Although all static files and components are cached successfully, api requests are not cached.
this is url of the website:
And here is the config of pwa in nuxt.config.js file:
The text was updated successfully, but these errors were encountered: