Export: Remove no-store headers in pdf and image previews (#78844)

This commit is contained in:
Ezequiel Victorero
2023-12-18 09:21:57 -03:00
committed by GitHub
parent 10cc3321cd
commit 864d91ed3e
3 changed files with 20 additions and 1 deletions

View File

@ -89,5 +89,6 @@ func (hs *HTTPServer) RenderToPng(c *contextmodel.ReqContext) {
}
c.Resp.Header().Set("Content-Type", "image/png")
c.Resp.Header().Set("Cache-Control", "private")
http.ServeFile(c.Resp, c.Req, result.FilePath)
}