[v9.4.x] Plugins: Fix Cache-Control header response for public/plugins/* assets API (#64255)

resolve conflicts
This commit is contained in:
Will Browne
2023-03-06 19:20:54 +01:00
committed by GitHub
parent 5a6471c01f
commit 2d0324ec70
2 changed files with 54 additions and 1 deletions
+2 -1
View File
@@ -33,7 +33,8 @@ func AddDefaultResponseHeaders(cfg *setting.Cfg) web.Handler {
return
}
if !strings.HasPrefix(c.Req.URL.Path, "/api/datasources/proxy/") {
if !strings.HasPrefix(c.Req.URL.Path, "/public/plugins/") &&
!strings.HasPrefix(c.Req.URL.Path, "/api/datasources/proxy/") {
addNoCacheHeaders(c.Resp)
}