From 832d60fc1364ddff608822e36d4a70c7eaa04f39 Mon Sep 17 00:00:00 2001 From: Jonas Galvez Date: Fri, 24 Aug 2018 09:46:34 -0300 Subject: [PATCH] fix: stateWhileRevalidate() -> networkOnly() --- packages/workbox/templates/sw.template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/workbox/templates/sw.template.js b/packages/workbox/templates/sw.template.js index a39a0a12..a1626f73 100644 --- a/packages/workbox/templates/sw.template.js +++ b/packages/workbox/templates/sw.template.js @@ -16,7 +16,7 @@ workbox.routing.registerRoute(new RegExp('<%= r.urlPattern %>'), workbox.strateg <% if (options.offlinePage) { %> // offlinePage support -const strategy = workbox.strategies.staleWhileRevalidate() +const strategy = workbox.strategies.networkOnly() workbox.routing.registerRoute(new RegExp('/.*'), ({event}) => { return strategy.handle({event}) .catch(() => caches.match('<%= options.offlinePage %>'))