updated service worker.
This commit is contained in:
parent
5a1c86a0dd
commit
41aeceed69
12
public/sw.js
12
public/sw.js
@ -27,6 +27,18 @@ workbox.routing.registerRoute(
|
|||||||
cacheName: CACHE
|
cacheName: CACHE
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
workbox.routing.registerRoute(
|
||||||
|
new RegExp('/db/.*'),
|
||||||
|
new workbox.strategies.CacheFirst({
|
||||||
|
cacheName: CACHE
|
||||||
|
})
|
||||||
|
);
|
||||||
|
workbox.routing.registerRoute(
|
||||||
|
new RegExp('/.*\\.svg'),
|
||||||
|
new workbox.strategies.CacheFirst({
|
||||||
|
cacheName: CACHE
|
||||||
|
})
|
||||||
|
);
|
||||||
workbox.routing.registerRoute(
|
workbox.routing.registerRoute(
|
||||||
new RegExp('/.*\\.jpeg'),
|
new RegExp('/.*\\.jpeg'),
|
||||||
new workbox.strategies.CacheFirst({
|
new workbox.strategies.CacheFirst({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user