Skip to content

Commit

Permalink
fix(caching): ⏪ Revert to staleWhileRevalidate
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Arora <[email protected]>
  • Loading branch information
whizzzkid committed Sep 27, 2023
1 parent a6ca656 commit b2baf9c
Show file tree
Hide file tree
Showing 2 changed files with 338 additions and 436 deletions.
2 changes: 1 addition & 1 deletion sw/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ registerRoute(
// API Route for roadmap
registerRoute(
({ url }) => url.pathname === '/api/roadmap',
new CacheChildren({
new StaleWhileRevalidate({
cacheName: 'roadmap',
matchOptions: {
ignoreVary: true
Expand Down
Loading

0 comments on commit b2baf9c

Please sign in to comment.