fix: 修复回填更新与截图刷新

This commit is contained in:
巫凤萍
2026-08-16 22:22:50 +08:00
parent 74671a9b9f
commit cac6c5e83b
5 changed files with 34 additions and 9 deletions

View File

@@ -186,7 +186,12 @@ async function handleGet(request: Request) {
}
const headers = new Headers();
object.writeHttpMetadata(headers);
headers.set("Cache-Control", "private, max-age=3600");
const isMutableEvidence =
imageKind === "publish" || imageKind === "creator";
headers.set(
"Cache-Control",
isMutableEvidence ? "private, no-store" : "private, max-age=3600",
);
if (imageKind === "video") {
headers.set("Content-Type", "video/mp4");
}