mirror of
https://github.com/prometheus/prometheus
synced 2026-04-30 23:11:34 +08:00
Add caching to static assets when served from blob handler.
This commit is contained in:
@@ -61,5 +61,6 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
contentType = mimeMap[parts[len(parts)-1]]
|
||||
}
|
||||
w.Header().Set("Content-Type", contentType)
|
||||
w.Header().Set("Cache-Control", "public, max-age=259200")
|
||||
w.Write(file)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user