chore: fetching & caching vehicles data information

This commit is contained in:
2024-06-03 01:31:31 +02:00
parent 785a42b849
commit 8190dfa2cb
4 changed files with 61 additions and 15 deletions
+7
View File
@@ -33,6 +33,13 @@ export default defineConfig({
}
}
},
{
urlPattern: /^https:\/\/stacjownik.spythere.eu\/vehicles/i,
handler: 'StaleWhileRevalidate',
options: {
cacheName: 'spythere-vehicles-cache'
}
},
{
urlPattern: /^https:\/\/static.spythere.eu\/.*/i,
handler: 'CacheFirst',