修改版本和图片域名转换

This commit is contained in:
eoao
2025-09-04 01:22:00 +08:00
parent 4d31dbc9c4
commit 613582c13e
7 changed files with 32 additions and 23 deletions

View File

@@ -22,7 +22,7 @@ const attService = {
metadate.contentDisposition = `attachment; filename="${attachment.filename}"`
} else {
metadate.contentDisposition = `inline; filename="${attachment.filename}"`
metadate.cacheControl = `max-age=604800`
metadate.cacheControl = `max-age=259200`
}
await r2Service.putObj(c, attachment.key, attachment.content, metadate);
@@ -119,7 +119,7 @@ const attService = {
attData.type = attConst.type.EMBED;
await r2Service.putObj(c, attData.key, attData.buff, {
contentType: attData.mimeType,
cacheControl: `max-age=604800`,
cacheControl: `max-age=259200`,
contentDisposition: `inline; filename="${attData.filename}"`
});
}