diff --git a/vite.config.ts b/vite.config.ts index 45a51af..1d5bd63 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -52,15 +52,26 @@ export default defineConfig(() => { }, { handler: "NetworkFirst", - urlPattern: /\/api\/weather.*/, + urlPattern: /\/api\/openmeteo.*/, options: { - cacheName: "apiWeatherCache", + cacheName: "apiOpenMeteoCache", expiration: { maxEntries: 100, maxAgeSeconds: 60 * 60 * 4, // 4 Hours }, }, }, + { + handler: "NetworkFirst", + urlPattern: /\/api\/timezone.*/, + options: { + cacheName: "apiTimezoneCache", + expiration: { + maxEntries: 100, + maxAgeSeconds: 60 * 60 * 24 * 7, // 7 Days + }, + }, + }, { handler: "NetworkFirst", urlPattern: /\/api\/tfr.*/,