From ce8795dcb36107b026083c72d306e8961193e1de Mon Sep 17 00:00:00 2001 From: RobinLinus Date: Tue, 29 Dec 2020 20:08:23 +0100 Subject: [PATCH] Fix service worker cache #226 --- client/service-worker.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/client/service-worker.js b/client/service-worker.js index 67bab2a..9dae080 100644 --- a/client/service-worker.js +++ b/client/service-worker.js @@ -1,13 +1,14 @@ -var CACHE_NAME = 'snapdrop-cache-v1.045'; +var CACHE_NAME = 'snapdrop-cache-v2'; var urlsToCache = [ - '/', - '/styles.css', - '/scripts/network.js', - '/scripts/ui.js', - '/scripts/clipboard.js', - '/scripts/theme.js', - '/sounds/blop.mp3', - '/images/favicon-96x96.png' + 'index.html', + './', + 'styles.css', + 'scripts/network.js', + 'scripts/ui.js', + 'scripts/clipboard.js', + 'scripts/theme.js', + 'sounds/blop.mp3', + 'images/favicon-96x96.png' ]; self.addEventListener('install', function(event) {