From a0d7e2c7808bd2f71ba0357e3b5586bd00ce8061 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 19 Jan 2018 00:30:25 -0800 Subject: [PATCH] remove console.logs --- templates/service-worker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/service-worker.js b/templates/service-worker.js index 4d388f66..3a09102f 100644 --- a/templates/service-worker.js +++ b/templates/service-worker.js @@ -73,14 +73,14 @@ self.addEventListener('fetch', event => { // Non-GET and for certain endpoints (e.g. OAuth), go network-only if (req.method !== 'GET' || NETWORK_ONLY.some(pattern => url.pathname.startsWith(pattern))) { - console.log('Using network-only for', url.href) + //console.log('Using network-only for', url.href) event.respondWith(fetch(req)) return } // For these, go cache-first. if (CACHE_FIRST.some(pattern => url.pathname.startsWith(pattern))) { - console.log('Using cache-first for', url.href) + //console.log('Using cache-first for', url.href) event.respondWith(caches .open(`offline${timestamp}`) .then(async cache => { @@ -107,7 +107,7 @@ self.addEventListener('fetch', event => { .open(`offline${timestamp}`) .then(async cache => { try { - console.log('Using network-first for', url.href) + //console.log('Using network-first for', url.href) const response = await fetch(req) cache.put(req, response.clone()) return response