This commit is contained in:
2024-03-27 16:21:56 +01:00
parent 43a724bf13
commit d5e735b59e
+14
View File
@@ -36,6 +36,20 @@ export default defineConfig({
},
},
},
{
urlPattern: /^https:\/\/static.spythere.eu\/.*/i,
handler: 'CacheFirst',
options: {
cacheName: 'spythere-api-images-cache',
expiration: {
maxEntries: 100,
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
},
cacheableResponse: {
statuses: [200, 302],
},
},
},
],
},
}),