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
|
// 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/,
|
||||||
|
|
Loading…
Reference in a new issue