fix: 修复回填更新与截图刷新
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user