chore: PWA caching

This commit is contained in:
2025-09-14 14:38:56 +02:00
parent 324ca3de4d
commit 23ca33264c
+2 -4
View File
@@ -21,11 +21,9 @@ export default defineConfig({
vue(), vue(),
VitePWA({ VitePWA({
registerType: 'autoUpdate', registerType: 'autoUpdate',
includeAssets: ['/images/*.{png,svg,jpg}', '/fonts/*.{woff,woff2}'],
workbox: { workbox: {
disableDevLogs: true, disableDevLogs: true,
globPatterns: ['**/*.{js,css,html,png,svg,jpg}'], globPatterns: ['**/*.{js,css,html,png,svg,jpg,ico,woff,woff2,ttf}'],
cleanupOutdatedCaches: true, cleanupOutdatedCaches: true,
runtimeCaching: [ runtimeCaching: [
{ {
@@ -36,7 +34,7 @@ export default defineConfig({
cacheName: 'stacjownik-api-cache', cacheName: 'stacjownik-api-cache',
cacheableResponse: { statuses: [0, 200] } cacheableResponse: { statuses: [0, 200] }
} }
} },
] ]
}, },
devOptions: { enabled: true, suppressWarnings: true } devOptions: { enabled: true, suppressWarnings: true }