From 4d593b7fe79dc565896cdfbf07f6e53d3320de32 Mon Sep 17 00:00:00 2001 From: Shanmuga Krishnan S M Date: Fri, 7 Aug 2026 14:15:27 +0530 Subject: [PATCH] fix(pwa): enable skipWaiting and cleanupOutdatedCaches to force browser to load new routes on push --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 8f94dae..1111bb3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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, } }) ],