From 11bfd6191dbd87aef59ab4d2c5ed85c488f616e4 Mon Sep 17 00:00:00 2001 From: sakrecoer Date: Mon, 10 Aug 2020 13:20:21 +0200 Subject: [PATCH] network first for service worker --- service-worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service-worker.js b/service-worker.js index 65253c8..d09bc2d 100644 --- a/service-worker.js +++ b/service-worker.js @@ -24,7 +24,7 @@ workbox.routing.registerRoute( // use `cacheFirst` strategy for images workbox.routing.registerRoute( /assets\/(img|icons|css)/, - workbox.strategies.cacheFirst() + workbox.strategies.networkFirst() ); workbox.routing.registerRoute( /videos/,