Export: Remove no-store headers in pdf and image previews (#78844)
This commit is contained in:
@@ -49,7 +49,9 @@ func AddDefaultResponseHeaders(cfg *setting.Cfg) web.Handler {
|
||||
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 {
|
||||
!strings.HasPrefix(c.Req.URL.Path, "/api/datasources/proxy/") &&
|
||||
!strings.HasPrefix(c.Req.URL.Path, "/api/reports/render/") &&
|
||||
!strings.HasPrefix(c.Req.URL.Path, "/render/d-solo/") && !resourceCachable {
|
||||
addNoCacheHeaders(c.Resp)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user