Skip to content

Commit 832d60f

Browse files
committedAug 24, 2018
fix: stateWhileRevalidate() -> networkOnly()
1 parent d73710a commit 832d60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎packages/workbox/templates/sw.template.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ workbox.routing.registerRoute(new RegExp('<%= r.urlPattern %>'), workbox.strateg
1616

1717
<% if (options.offlinePage) { %>
1818
// offlinePage support
19-
const strategy = workbox.strategies.staleWhileRevalidate()
19+
const strategy = workbox.strategies.networkOnly()
2020
workbox.routing.registerRoute(new RegExp('/.*'), ({event}) => {
2121
return strategy.handle({event})
2222
.catch(() => caches.match('<%= options.offlinePage %>'))

0 commit comments

Comments
 (0)
Please sign in to comment.