about summary refs log tree commit diff stats
path: root/js/pico-cam/service-worker.js
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-07-04 08:55:07 -0400
committerelioat <elioat@tilde.institute>2024-07-04 08:55:07 -0400
commit5d2993d7ad5b7a118421c2f783cfbeb1ab4aca00 (patch)
tree54eea023c2e987568b909ba1fcba747ab9ef26aa /js/pico-cam/service-worker.js
parentfdb2c861e4740a9158b27afec6353d659a9774d1 (diff)
downloadtour-5d2993d7ad5b7a118421c2f783cfbeb1ab4aca00.tar.gz
*
Diffstat (limited to 'js/pico-cam/service-worker.js')
-rw-r--r--js/pico-cam/service-worker.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/pico-cam/service-worker.js b/js/pico-cam/service-worker.js
index 9540cfb..2a2da64 100644
--- a/js/pico-cam/service-worker.js
+++ b/js/pico-cam/service-worker.js
@@ -1,8 +1,10 @@
-var CACHE_NAME = 'pico-cam-v3';
+var CACHE_NAME = 'pico-cam-v4';
 var urlsToCache = [
   './',
   './index.html',
-  './pico-cam.js'
+  './pico-cam.js',
+  './service-worker.js',
+  './favicon.ico'
 ];
 
 self.addEventListener('install', function(event) {
@@ -30,7 +32,7 @@ self.addEventListener('fetch', function(event) {
 });
 
 self.addEventListener('activate', function(event) {
-    var cacheWhitelist = ['pico-cam-v3'];
+    var cacheWhitelist = ['pico-cam-v4'];
     event.waitUntil(
         caches.keys().then(function(cacheNames) {
             return Promise.all(