diff --git a/client/index.html b/client/index.html index 4038db4d6e..e17ced81c7 100644 --- a/client/index.html +++ b/client/index.html @@ -4,6 +4,10 @@ + + + + NDSEP — National Data Sovereignty Enforcement Platform @@ -49,11 +53,32 @@ - + diff --git a/client/public/sw.js b/client/public/sw.js index 494c2f3090..3accc6a1c4 100644 --- a/client/public/sw.js +++ b/client/public/sw.js @@ -1,20 +1,24 @@ /** - * NDSEP Service Worker — Offline-First PWA - * Stale-while-revalidate for static assets, network-first for API. + * NDSEP Service Worker — Offline-First PWA with Cache Busting + * + * Cache strategy: + * - CACHE_VERSION is bumped on every deploy (build injects a hash via Vite). + * - On activate, ALL caches whose name doesn't match the current version are + * deleted, guaranteeing stale JS/CSS from a prior deploy is never served. + * - Navigation requests (HTML) are always network-first so the latest + * index.html (with fresh