fix: Conditionally set Cache-Control header to prevent caching in development environments. (#3010)

This commit is contained in:
Jon Volkmar
2026-01-20 18:18:08 -08:00
committed by GitHub
parent ea24b5a97a
commit 5cd5b65e83
+3 -1
View File
@@ -55,7 +55,9 @@ const nextConfig = {
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=31536000, immutable',
value: isDev
? 'public, max-age=0, must-revalidate'
: 'public, max-age=31536000, immutable',
},
],
},