Skip to content

Commit

Permalink
add cache option
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 committed Jun 21, 2024
1 parent a428b15 commit 21a76ea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/studio-next/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ const nextConfig = {

return config
},
async headers() {
return [
{
source: '/',
headers: [
{
key: 'Netlify-CDN-Cache-Control',
value: 'public, s-maxage=31536000, must-revalidate',
},
{
key: 'Cache-Control',
value: 'public, max-age=0, must-revalidate',
},
],
},
]
},
}

module.exports = nextConfig

0 comments on commit 21a76ea

Please sign in to comment.