Merge pull request #160 from Spythere/development

v1.33.0 caching hotfix
This commit is contained in:
Spythere
2026-03-29 14:12:00 +02:00
committed by GitHub
+5 -2
View File
@@ -29,10 +29,13 @@ export default defineConfig({
{
urlPattern:
/^https:\/\/stacjownik.spythere.eu\/api\/(getVehiclesData|getDonators|getSceneries)/i,
handler: 'CacheFirst',
handler: 'StaleWhileRevalidate',
options: {
cacheName: 'stacjownik-api-cache',
cacheableResponse: { statuses: [0, 200] }
cacheableResponse: { statuses: [0, 200] },
expiration: {
maxAgeSeconds: 3600
}
}
}
]