Skip to content

Commit

Permalink
fix: stateWhileRevalidate() -> networkOnly()
Browse files Browse the repository at this point in the history
  • Loading branch information
galvez committed Aug 24, 2018
1 parent d73710a commit 832d60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workbox/templates/sw.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>'))
Expand Down

0 comments on commit 832d60f

Please sign in to comment.