From 26fb1a787e3c79f83e973700339604101be8f784 Mon Sep 17 00:00:00 2001 From: Kevin Kandlbinder Date: Wed, 19 May 2021 17:37:50 +0200 Subject: [PATCH] Allow non-navigation caching --- src/service-worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service-worker.js b/src/service-worker.js index 64f4584..f128005 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -39,9 +39,9 @@ registerRoute( // Return false to exempt requests from being fulfilled by index.html. ({ request, url }) => { // If this isn't a navigation, skip. - if (request.mode !== 'navigate') { + /*if (request.mode !== 'navigate') { return false; - } // If this is a URL that starts with /_, skip. + }*/ // If this is a URL that starts with /_, skip. if (url.pathname.startsWith('/_')) { return false;