diff --git a/src/ServiceWorker/sw.js b/src/ServiceWorker/sw.js index 1dc31a3f..4a81d88d 100644 --- a/src/ServiceWorker/sw.js +++ b/src/ServiceWorker/sw.js @@ -10,7 +10,7 @@ workbox.routing.registerRoute( // Always send api reqeusts through the network workbox.routing.registerRoute( - new RegExp('(\\/)?api\\/v1\\/.*$'), + new RegExp('api\\/v1\\/.*$'), new workbox.strategies.NetworkOnly() );