Skip to content

Commit

Permalink
Set raceCacheNetwork as fallback policy
Browse files Browse the repository at this point in the history
  • Loading branch information
sansmoraxz committed Dec 23, 2022
1 parent f90ce7c commit be38e38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/serviceWorker/policies.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cacheFirst, networkFirst, networkOnly } from './cachingStrategy';
import { cacheFirst, networkFirst, raceCacheNetwork } from './cachingStrategy';

// the various network policies for service workers
export const policies = [
Expand Down Expand Up @@ -30,6 +30,6 @@ export const policies = [
// fallback
{
url: /.+/i,
handle: networkOnly
}
handle: raceCacheNetwork
},
];

0 comments on commit be38e38

Please sign in to comment.