Browse Source

Merge branch 'V20220616' into fix-2144

pull/2239/head
zhoupzh 3 years ago
parent
commit
cc3337e1b9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      routers/repo/cloudbrain.go

+ 1
- 0
routers/repo/cloudbrain.go View File

@@ -1150,6 +1150,7 @@ func CloudBrainDownloadModel(ctx *context.Context) {
ctx.ServerError("PresignedGetURL", err) ctx.ServerError("PresignedGetURL", err)
return return
} }
ctx.Resp.Header().Set("Cache-Control", "max-age=0")
http.Redirect(ctx.Resp, ctx.Req.Request, url, http.StatusMovedPermanently) http.Redirect(ctx.Resp, ctx.Req.Request, url, http.StatusMovedPermanently)
} }




Loading…
Cancel
Save