chore: pwa adjustments

This commit is contained in:
2024-05-24 13:43:29 +02:00
parent 8aa23468b3
commit f0c02bf12e
+8
View File
@@ -7,6 +7,10 @@ export default defineConfig({
port: 5001, port: 5001,
open: true open: true
}, },
preview: {
port: 4001,
open: true
},
publicDir: 'public', publicDir: 'public',
plugins: [ plugins: [
vue(), vue(),
@@ -36,6 +40,10 @@ export default defineConfig({
cacheName: 'spythere-static-cache', cacheName: 'spythere-static-cache',
cacheableResponse: { cacheableResponse: {
statuses: [0, 200] statuses: [0, 200]
},
expiration: {
maxEntries: 100,
maxAgeSeconds: 60 * 60 * 8
} }
} }
} }