Skip to content

Commit

Permalink
cache control set to 1 month
Browse files Browse the repository at this point in the history
  • Loading branch information
euanwm committed Aug 9, 2024
1 parent e985831 commit 4edb7df
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 4edb7df

Please sign in to comment.