mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 10:20:29 -06:00
Avatar: Allow browser caching of /avatar/ (#78314)
don't set no-store headers to /avatar/
This commit is contained in:
parent
4247696402
commit
4c4f11f4b3
@ -48,6 +48,7 @@ func AddDefaultResponseHeaders(cfg *setting.Cfg) web.Handler {
|
||||
_, _, resourceURLMatch := t.Match(c.Req.URL.Path)
|
||||
resourceCachable := resourceURLMatch && allowCacheControl(c.Resp)
|
||||
if !strings.HasPrefix(c.Req.URL.Path, "/public/plugins/") &&
|
||||
!strings.HasPrefix(c.Req.URL.Path, "/avatar/") &&
|
||||
!strings.HasPrefix(c.Req.URL.Path, "/api/datasources/proxy/") && !resourceCachable {
|
||||
addNoCacheHeaders(c.Resp)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user