Skip to content

Commit

Permalink
Disable cache in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
reynaldichernando committed Dec 4, 2024
1 parent f7c77ad commit 935a072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const serwist = new Serwist({
skipWaiting: true,
clientsClaim: true,
navigationPreload: true,
runtimeCaching: [
runtimeCaching: process.env.NODE_ENV === 'development' ? [] : [
{
matcher: ({ request }) => request.destination === "style",
handler: new StaleWhileRevalidate(),
Expand Down

0 comments on commit 935a072

Please sign in to comment.