Skip to content

Commit

Permalink
fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmanaa committed Sep 4, 2024
1 parent 6116a0d commit fd7b355
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/api/ccip/lane-statuses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export const GET: APIRoute = async ({ request }) => {
status: 200,
headers: {
...commonHeaders,
"Cache-Control": "s-maxage=300, stale-while-revalidate=60", // Cache for 5 minutes, allow stale content for 1 minute
"Cache-Control": "s-max-age=300, stale-while-revalidate",
"CDN-Cache-Control": "max-age=300",
"Vercel-CDN-Cache-Control": "max-age=300",
},
})
}
Expand Down Expand Up @@ -140,7 +142,9 @@ export const GET: APIRoute = async ({ request }) => {
status: 200,
headers: {
...commonHeaders,
"Cache-Control": "s-maxage=300, stale-while-revalidate=60", // Cache for 5 minutes, allow stale content for 1 minute
"Cache-Control": "s-max-age=300, stale-while-revalidate",
"CDN-Cache-Control": "max-age=300",
"Vercel-CDN-Cache-Control": "max-age=300",
},
})
}
Expand Down

0 comments on commit fd7b355

Please sign in to comment.