From 3f9caa219d6ea32192890774e28bf7604a5b7a69 Mon Sep 17 00:00:00 2001 From: Vishwanath Martur <64204611+vishwamartur@users.noreply.github.com> Date: Wed, 30 Oct 2024 12:08:30 +0530 Subject: [PATCH] Fix cache-control header issue in Next.js Related to #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`. --- next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.js b/next.config.js index 49627da9..2fde6749 100644 --- a/next.config.js +++ b/next.config.js @@ -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', + }, ], }, ]