From 421b860da53ec6648c5ad94a63568d23bd7f96a2 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 28 Sep 2018 14:03:25 +0300 Subject: [PATCH] fix(sw) cache favicon.ico from root (#194) --- client/sw/sw.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/client/sw/sw.js b/client/sw/sw.js index de4c93d5..db2f0b47 100644 --- a/client/sw/sw.js +++ b/client/sw/sw.js @@ -67,15 +67,6 @@ async function onInstall() { console.info(`cloudcmd: sw: install: ${NAME}`); await self.skipWaiting(); - - const cache = await caches.open(NAME); - - const urls = [ - '/favicon.ico', - ]; - - const requests = urls.map(createRequest); - return cache.addAll(requests); } async function onFetch(event) {