From 5cd5b65e83964f95848e45b92a8efdf203d20da5 Mon Sep 17 00:00:00 2001 From: Jon Volkmar Date: Tue, 20 Jan 2026 18:18:08 -0800 Subject: [PATCH] fix: Conditionally set Cache-Control header to prevent caching in development environments. (#3010) --- apps/readest-app/next.config.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/readest-app/next.config.mjs b/apps/readest-app/next.config.mjs index 588bbc0a..cc0d8fb1 100644 --- a/apps/readest-app/next.config.mjs +++ b/apps/readest-app/next.config.mjs @@ -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', }, ], },