Skip to content

Commit

Permalink
Change cache strategy to StaleWhileRevalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed May 24, 2024
1 parent 5a27574 commit a6aecce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ register('capabilities/buildmap', new StaleWhileRevalidate())

// Cache map tiles using NetworkFirst for the moment - may be worth switching
// to StaleWhileRevalidate closer to the event.
register('maps', new NetworkFirst())
register('maps', new StaleWhileRevalidate())

try {
// Only catch requests to the root URL (a regex doesn't do this).
Expand Down

0 comments on commit a6aecce

Please sign in to comment.