From 819697d697f956667ebb764bae645f67f2ba3d90 Mon Sep 17 00:00:00 2001 From: RobinLinus Date: Tue, 12 Mar 2019 23:38:32 +0100 Subject: [PATCH] Cache favicon with ServiceWorker --- client/index.html | 4 ++-- client/service-worker.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/index.html b/client/index.html index e54ca99..4c978b5 100644 --- a/client/index.html +++ b/client/index.html @@ -20,8 +20,8 @@ - - + + diff --git a/client/service-worker.js b/client/service-worker.js index 1179978..4a0dd9e 100644 --- a/client/service-worker.js +++ b/client/service-worker.js @@ -1,10 +1,11 @@ -var CACHE_NAME = 'snapdrop-cache-v1.0'; +var CACHE_NAME = 'snapdrop-cache-v1.01'; var urlsToCache = [ '/', '/styles.css', '/scripts/network.js', '/scripts/ui.js', - '/sounds/blop.mp3' + '/sounds/blop.mp3', + '/images/favicon-96x96.png' ]; self.addEventListener('install', function(event) {