From 6a20ccda5cae6b672ac77579692256f546cda027 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 18 Jul 2026 17:21:00 +0200 Subject: [PATCH] Fix media route cache-control to avoid Cloudflare stale caching --- src/app/api/media/[...path]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/media/[...path]/route.ts b/src/app/api/media/[...path]/route.ts index b908674f..02a31be7 100644 --- a/src/app/api/media/[...path]/route.ts +++ b/src/app/api/media/[...path]/route.ts @@ -49,7 +49,7 @@ export async function GET( headers: { // eslint-disable-next-line security/detect-object-injection -- ext validated against ALLOWED_EXT "Content-Type": mime[ext] ?? "application/octet-stream", - "Cache-Control": "public, max-age=86400", + "Cache-Control": "public, max-age=3600, must-revalidate", }, }); }