fix(pwa): enable skipWaiting and cleanupOutdatedCaches to force browser to load new routes on push
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled
This commit is contained in:
@@ -43,7 +43,10 @@ export default defineConfig({
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,ico,png,svg,webp,webm}'],
|
||||
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024
|
||||
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024,
|
||||
cleanupOutdatedCaches: true,
|
||||
skipWaiting: true,
|
||||
clientsClaim: true,
|
||||
}
|
||||
})
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user