Fix media route cache-control to avoid Cloudflare stale caching
Local Build and Deploy / deploy (push) Successful in 1m6s

This commit is contained in:
openhands committed 2026-07-18 17:21:00 +02:00
1 parent 1bbbf6e5a4
commit 6a20ccda5c
1 file changed
+1 -1
+1 -1
View File
@@ -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",
},
});
}