Fix persistent caching: no-store/no-cache headers, SW v4, versioned asset URLs
This commit is contained in:
1 parent
86914a7329
commit
ea20d31217
3 files changed
+15
-5
No files matched your search
+3
-3
@@ -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'
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user