chore(config): updated PWA cache control

This commit is contained in:
2026-05-05 17:03:42 +02:00
parent 8dc49cc4d5
commit 5510196bb3
+2 -2
View File
@@ -29,12 +29,12 @@ export default defineConfig({
{ {
urlPattern: urlPattern:
/^https:\/\/stacjownik.spythere.eu\/api\/(getVehiclesData|getDonators|getSceneries)/i, /^https:\/\/stacjownik.spythere.eu\/api\/(getVehiclesData|getDonators|getSceneries)/i,
handler: 'StaleWhileRevalidate', handler: 'NetworkFirst',
options: { options: {
cacheName: 'stacjownik-api-cache', cacheName: 'stacjownik-api-cache',
cacheableResponse: { statuses: [0, 200] }, cacheableResponse: { statuses: [0, 200] },
expiration: { expiration: {
maxAgeSeconds: 3600 maxAgeSeconds: 600
} }
} }
} }