diff --git a/app/static/sw.js b/app/static/sw.js index 4b4e58d..fe576ab 100644 --- a/app/static/sw.js +++ b/app/static/sw.js @@ -1,9 +1,28 @@ // NextSnap Service Worker // Provides offline-first caching for the app shell -const CACHE_VERSION = 'nextsnap-v19'; -const APP_SHELL_CACHE = 'nextsnap-shell-v15'; -const RUNTIME_CACHE = 'nextsnap-runtime-v15'; +const CACHE_VERSION = 'nextsnap-v20'; +const APP_SHELL_CACHE = 'nextsnap-shell-v16'; +const RUNTIME_CACHE = 'nextsnap-runtime-v16'; + +// Offline fallback page (served when network fails and no cached version exists) +const OFFLINE_PAGE = ` +
+ +Check your internet connection and try again.
+