fix(canvas): 画布与素材同步 - 修复批量缩略图、远程资源回退与重命名同步

This commit is contained in:
ddCat
2026-09-18 23:27:34 +08:00
parent 531019b368
commit b99ad798b9
19 changed files with 635 additions and 513 deletions

View File

@@ -295,8 +295,8 @@ func RegisterUserDataRoutes(r *gin.RouterGroup, svc *service.Service) {
return
}
if delivery.RedirectURL != "" {
// CDN 或对象存储直连地址允许安全短期缓存
c.Header("Cache-Control", "private, max-age=86400, stale-while-revalidate=3600")
// 签名链接仅有效 5 分钟;重定向缓存必须短于签名 TTL,避免命中过期地址。
c.Header("Cache-Control", "private, max-age=240")
c.Header("Referrer-Policy", "no-referrer")
c.Header("X-Content-Type-Options", "nosniff")
c.Redirect(http.StatusTemporaryRedirect, delivery.RedirectURL)