Skip to content

Commit

Permalink
update cache-control header for scores route
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Feb 16, 2024
1 parent 574c9a6 commit f93ebb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const app = new Elysia()

// if production, set cache control
if (process.env.NODE_ENV === 'production') {
set.headers['Cache-Control'] = `public, max-age=${basePath === 'scoreboard' ? '180' : '1800'}`
set.headers['Cache-Control'] = `public, max-age=${basePath === 'scoreboard' ? '60' : '1800'}`
}

// check that resource is valid
Expand Down

0 comments on commit f93ebb3

Please sign in to comment.