network first for service worker

This commit is contained in:
sakrecoer 2020-08-10 13:20:21 +02:00
parent 37eb90c429
commit 11bfd6191d

View file

@ -24,7 +24,7 @@ workbox.routing.registerRoute(
// use `cacheFirst` strategy for images // use `cacheFirst` strategy for images
workbox.routing.registerRoute( workbox.routing.registerRoute(
/assets\/(img|icons|css)/, /assets\/(img|icons|css)/,
workbox.strategies.cacheFirst() workbox.strategies.networkFirst()
); );
workbox.routing.registerRoute( workbox.routing.registerRoute(
/videos/, /videos/,