network first for service worker
This commit is contained in:
parent
37eb90c429
commit
11bfd6191d
|
@ -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/,
|
||||
|
|
Loading…
Reference in a new issue