From 23ca33264c19f51db1f38ab23fd50b0cd6f9207e Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 14 Sep 2025 14:38:56 +0200 Subject: [PATCH] chore: PWA caching --- vite.config.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 9e17924..0ea2f10 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,11 +21,9 @@ export default defineConfig({ vue(), VitePWA({ registerType: 'autoUpdate', - includeAssets: ['/images/*.{png,svg,jpg}', '/fonts/*.{woff,woff2}'], - workbox: { disableDevLogs: true, - globPatterns: ['**/*.{js,css,html,png,svg,jpg}'], + globPatterns: ['**/*.{js,css,html,png,svg,jpg,ico,woff,woff2,ttf}'], cleanupOutdatedCaches: true, runtimeCaching: [ { @@ -36,7 +34,7 @@ export default defineConfig({ cacheName: 'stacjownik-api-cache', cacheableResponse: { statuses: [0, 200] } } - } + }, ] }, devOptions: { enabled: true, suppressWarnings: true }