aboutsummaryrefslogtreecommitdiff
path: root/public/service-worker.js
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-24 21:24:15 +0300
committereug-vs <eug-vs@keemail.me>2020-08-24 21:24:29 +0300
commit27ce051352a3d8aef51aeee5d93e4b5c1773cc4f (patch)
tree1730324649ed6afc56bc6d882ed56691199f84e4 /public/service-worker.js
parent918d2f62a9589abc657d9aa6c458f4630ecb5a41 (diff)
downloadwhich-ui-27ce051352a3d8aef51aeee5d93e4b5c1773cc4f.tar.gz
feat: clear images cache on version update
Diffstat (limited to 'public/service-worker.js')
-rw-r--r--public/service-worker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/service-worker.js b/public/service-worker.js
index d2c6b9e..98c8b83 100644
--- a/public/service-worker.js
+++ b/public/service-worker.js
@@ -40,7 +40,7 @@ this.addEventListener('fetch', event => {
});
this.addEventListener('activate', event => {
- const cacheWhiteList = [CACHE_NAME, IMAGES_CACHE_NAME];
+ const cacheWhiteList = [CACHE_NAME];
event.waitUntil(
caches.keys()
.then(keys => Promise.all(