Skip to content

Commit 3911cc1

Browse files
authored
Update base.go
use http.StatusTemporaryRedirect(307) when serve avatar directly browser caches 301 redirections, pre-signed s3 url would expire at some later point
1 parent e82db15 commit 3911cc1

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)