chore(pwa): image caching changes

This commit is contained in:
2024-04-15 16:36:30 +02:00
parent 4079426506
commit 3424f9a952
+1 -17
View File
@@ -38,28 +38,12 @@ export default defineConfig({
},
},
},
{
urlPattern: new RegExp('^https://static.spythere.eu/images/*', 'i'),
handler: 'CacheFirst',
options: {
cacheName: 'spythere-api-cache',
expiration: {
maxEntries: 100,
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
},
cacheableResponse: {
statuses: [200, 302],
},
},
},
{
urlPattern: new RegExp('^https://stacjownik.spythere.eu/vehicles', 'i'),
handler: 'NetworkFirst',
options: {
cacheName: 'vehicles-cache',
cacheableResponse: {
statuses: [200],
},
},
},
],