Skip to content

Commit

Permalink
Merge pull request #390 from euanwm/feature/cache_control_change
Browse files Browse the repository at this point in the history
cache control change
  • Loading branch information
euanwm authored Aug 9, 2024
2 parents e985831 + 4edb7df commit 7dbc01a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ const nextConfig = {
env: {
API: process.env.API ?? 'https://api.openweightlifting.org',
},
async headers() {
return [
{
source: '/:all*',
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=2628000',
}
],
},
]
}
}

module.exports = nextConfig

0 comments on commit 7dbc01a

Please sign in to comment.