mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 20:17:03 +01:00
Update base.go (#19739)
use http.StatusTemporaryRedirect(307) when serve avatar directly browser caches 301 redirections, pre-signed s3 url would expire at some later point Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
c27268db21
commit
3e5ea9a978
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ func storageHandler(storageSetting setting.Storage, prefix string, objStore stor
|
||||||
w,
|
w,
|
||||||
req,
|
req,
|
||||||
u.String(),
|
u.String(),
|
||||||
http.StatusPermanentRedirect,
|
http.StatusTemporaryRedirect,
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue