mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 10:13:01 +08:00
App Plugins: Allow resource handle to define Cache-Control Header (#92559)
This commit is contained in:
@ -33,6 +33,7 @@ func AddDefaultResponseHeaders(cfg *setting.Cfg) web.Handler {
|
||||
t := web.NewTree()
|
||||
t.Add("/api/datasources/uid/:uid/resources/*", nil)
|
||||
t.Add("/api/datasources/:id/resources/*", nil)
|
||||
t.Add("/api/plugins/:id/resources/*", nil)
|
||||
|
||||
return func(c *web.Context) {
|
||||
c.Resp.Before(func(w web.ResponseWriter) { // if response has already been written, skip.
|
||||
|
Reference in New Issue
Block a user