We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efb0201 commit 518f6e9Copy full SHA for 518f6e9
web_src/js/features/serviceworker.js
@@ -15,12 +15,12 @@ async function invalidateCache() {
15
16
async function checkCacheValidity() {
17
const cacheKey = AppVer;
18
- const storedCacheKey = localStorage.getItem('serviceWorkerCacheKey');
+ const storedCacheKey = localStorage.getItem('staticCacheKey');
19
20
// invalidate cache if it belongs to a different gitea version
21
if (cacheKey && storedCacheKey !== cacheKey) {
22
invalidateCache();
23
- localStorage.setItem('serviceWorkerCacheKey', cacheKey);
+ localStorage.setItem('staticCacheKey', cacheKey);
24
}
25
26
0 commit comments