cleanup outdated caches :)

This commit is contained in:
Carter 2025-03-13 14:30:26 -06:00
parent d945092b77
commit 53a7c486ce
2 changed files with 2 additions and 58 deletions

View file

@ -9,10 +9,12 @@ export default defineConfig({
react(),
tsconfigPaths(),
VitePWA({
registerType: 'autoUpdate', // Automatically updates the service worker when a new version is available
workbox: {
globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types
maximumFileSizeToCacheInBytes: 20 * 1024 * 1024, // 20 MiB
cleanupOutdatedCaches: true
},
}),
],