Less explicit matching of api routes for service worker
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2020-05-10 18:10:29 +02:00
parent b1de52fc0b
commit f524a3efc1
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -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()
); );