Skip to content

Commit

Permalink
use _headers file
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 committed Jun 21, 2024
1 parent 2de6383 commit c0caed8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
3 changes: 3 additions & 0 deletions apps/studio-next/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*
CDN-Cache-Control: public, max-age=36400, must-revalidate
Cache-Control: public, max-age=0, must-revalidate
15 changes: 1 addition & 14 deletions apps/studio-next/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,7 @@ const nextConfig = {
);

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

module.exports = nextConfig

0 comments on commit c0caed8

Please sign in to comment.