👌 IMPROVE: drop redundant Cache-Control from next.config headers

force-dynamic on root layout already handles page cache busting;
the blanket header risked overriding intentional API route caching.
This commit is contained in:
kumarabhirup 2026-03-19 13:48:41 -07:00
parent 08aa0949b7
commit ab3ffa17e2
No known key found for this signature in database
GPG Key ID: DB7CA2289CAB0167

View File

@ -27,13 +27,7 @@ const nextConfig: NextConfig = {
return [
{
source: "/((?!_next/static|_next/image|favicon\\.ico).*)",
headers: [
{
key: "Cache-Control",
value: "private, no-cache, no-store, max-age=0, must-revalidate",
},
{ key: "X-Denchclaw-Version", value: denchVersion },
],
headers: [{ key: "X-Denchclaw-Version", value: denchVersion }],
},
];
},