Skip to content

Commit

Permalink
fix: use NetworkFirst strategy in order to avoid loading nonexistent …
Browse files Browse the repository at this point in the history
…assets
  • Loading branch information
razonyang committed Nov 5, 2022
1 parent ddc3d7a commit d881f66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/service-worker/routes/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ function pageRoute(config) {
({ request }) => {
return request.mode === 'navigate';
},
config.env === 'production'
? staleWhileRevalidate(config)
: networkFirst(config)
networkFirst(config)
);
}

Expand Down

0 comments on commit d881f66

Please sign in to comment.