Skip to content

Commit

Permalink
Fix cache-control header issue in Next.js
Browse files Browse the repository at this point in the history
Related to BuilderIO#52

Add cache-control header configuration to prevent CDN caching empty replies.

* Modify `next.config.js` to include a `Cache-Control` header with a value of `no-store`.
  • Loading branch information
vishwamartur committed Oct 30, 2024
1 parent 0cf7006 commit 3f9caa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = bundleAnalyzer({
value:
'frame-ancestors https://*.builder.io https://builder.io http://localhost:1234',
},
{
key: 'Cache-Control',
value: 'no-store',
},
],
},
]
Expand Down

0 comments on commit 3f9caa2

Please sign in to comment.