diff options
Diffstat (limited to 'routers/web/user/avatar.go')
-rw-r--r-- | routers/web/user/avatar.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/avatar.go b/routers/web/user/avatar.go index 2dba74822..7ad65cd51 100644 --- a/routers/web/user/avatar.go +++ b/routers/web/user/avatar.go @@ -17,7 +17,7 @@ func cacheableRedirect(ctx *context.Context, location string) { // here we should not use `setting.StaticCacheTime`, it is pretty long (default: 6 hours) // we must make sure the redirection cache time is short enough, otherwise a user won't see the updated avatar in 6 hours // it's OK to make the cache time short, it is only a redirection, and doesn't cost much to make a new request - httpcache.AddCacheControlToHeader(ctx.Resp.Header(), 5*time.Minute) + httpcache.SetCacheControlInHeader(ctx.Resp.Header(), 5*time.Minute) ctx.Redirect(location) } |