summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-09 18:53:31 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-09 18:53:31 +0900
commit23e7650983c4dff1173956e4e12d80bae2ae16a5 (patch)
tree10e54e9ff9b449872fbbd566c64f5dc413c67cb4 /src/client
parentFix #5891 (diff)
parentFix cannot update (#5890) (diff)
downloadsharkey-23e7650983c4dff1173956e4e12d80bae2ae16a5.tar.gz
sharkey-23e7650983c4dff1173956e4e12d80bae2ae16a5.tar.bz2
sharkey-23e7650983c4dff1173956e4e12d80bae2ae16a5.zip
Merge branch 'develop' of https://github.com/syuilo/misskey into develop
Diffstat (limited to 'src/client')
-rw-r--r--src/client/sw.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/sw.js b/src/client/sw.js
index 0ad9e22f12..68e43429ac 100644
--- a/src/client/sw.js
+++ b/src/client/sw.js
@@ -18,7 +18,7 @@ self.addEventListener('install', ev => {
caches.open(cacheName)
.then(cache => {
return cache.addAll([
- '/'
+ `/?v=${version}`
]);
})
.then(() => self.skipWaiting())
@@ -45,7 +45,7 @@ self.addEventListener('fetch', ev => {
return response || fetch(ev.request);
})
.catch(() => {
- return caches.match('/');
+ return caches.match(`/?v=${version}`);
})
);
});