Fix persistent caching: no-store/no-cache headers, SW v4, versioned asset URLs

This commit is contained in:
Nate committed 2026-03-16 15:19:54 -04:00
1 parent 86914a7329
commit ea20d31217
3 files changed
+15 -5

No files matched your search

+3 -3
View File
@@ -1,12 +1,12 @@
'use strict';
const CACHE = 'weather-v3';
const CACHE = 'weather-v4';
// App shell — cached on install for offline use
const PRECACHE = [
'/',
'/app.js',
'/style.css',
'/app.js?v=4',
'/style.css?v=4',
'/manifest.json',
'/icons/icon.svg'
];