From 5510196bb3c92b9bab02e93a77dc93e6927f7b39 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 5 May 2026 17:03:42 +0200 Subject: [PATCH] chore(config): updated PWA cache control --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 23df210..7a89688 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -29,12 +29,12 @@ export default defineConfig({ { urlPattern: /^https:\/\/stacjownik.spythere.eu\/api\/(getVehiclesData|getDonators|getSceneries)/i, - handler: 'StaleWhileRevalidate', + handler: 'NetworkFirst', options: { cacheName: 'stacjownik-api-cache', cacheableResponse: { statuses: [0, 200] }, expiration: { - maxAgeSeconds: 3600 + maxAgeSeconds: 600 } } }