Skip to content

Commit 3e5ea9a

Browse files
guoyk93lunnytechknowlogick
authored
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 <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent c27268d commit 3e5ea9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func storageHandler(storageSetting setting.Storage, prefix string, objStore stor
6262
w,
6363
req,
6464
u.String(),
65-
http.StatusPermanentRedirect,
65+
http.StatusTemporaryRedirect,
6666
)
6767
})
6868
}

0 commit comments

Comments
 (0)