eslint & prettier update; api fetching from static server

This commit is contained in:
2024-03-27 16:10:53 +01:00
parent f9276f6c71
commit 337425d21c
37 changed files with 636 additions and 565 deletions
-28
View File
@@ -36,34 +36,6 @@ export default defineConfig({
},
},
},
{
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/data\/.*/i,
handler: 'NetworkFirst',
options: {
cacheName: 'spythere-api-data-cache',
expiration: {
maxEntries: 150,
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
{
urlPattern: /^https:\/\/spythere.github.io\/api\/td2\/images\/.*/i,
handler: 'CacheFirst',
options: {
cacheName: 'spythere-api-images-cache',
expiration: {
maxEntries: 150,
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
},
cacheableResponse: {
statuses: [0, 200],
},
},
},
],
},
}),