cleanup outdated caches :)
This commit is contained in:
parent
d945092b77
commit
53a7c486ce
2 changed files with 2 additions and 58 deletions
|
|
@ -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
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue