Skip to content

Commit

Permalink
Cache /versions response for 10 min
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegach committed Aug 9, 2024
1 parent 09a1777 commit c70e705
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/frontpage/app/versions/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ export async function GET(request: NextRequest) {

return new Response(res[0], {
status: 200,
headers: { 'Access-Control-Allow-Origin': '*' },
headers: {
'Access-Control-Allow-Origin': '*',
// Cache for 10 minutes
'Cache-Control': 'public s-max-age=36000',
},
});
}

0 comments on commit c70e705

Please sign in to comment.