Less explicit matching of api routes for service worker
This commit is contained in:
@ -10,7 +10,7 @@ workbox.routing.registerRoute(
|
|||||||
|
|
||||||
// Always send api reqeusts through the network
|
// Always send api reqeusts through the network
|
||||||
workbox.routing.registerRoute(
|
workbox.routing.registerRoute(
|
||||||
new RegExp('(\\/)?api\\/v1\\/.*$'),
|
new RegExp('api\\/v1\\/.*$'),
|
||||||
new workbox.strategies.NetworkOnly()
|
new workbox.strategies.NetworkOnly()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user