-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
The following code doesn't seem to work.
I want to cache my post request and set the cache time for this request through a certain parameter.
nuxt.config.ts
pwa:{
workbox:{
enabled:true,
runtimeCaching:[
{
urlPattern: '.*',
handler: 'CacheFirst',
options:{
cacheName:"api-cache",
expiration: {
maxEntries: 10,
maxAgeSeconds: 60
},
cacheableResponse: {
statuses: [0, 200]
}
}
}
]
}
},
Metadata
Metadata
Assignees
Labels
No labels