Merge pull request #772 from prometheus/cache-control
Update cache control for web assets
This commit is contained in:
commit
6784e300cf
|
@ -40,7 +40,7 @@ func serveAsset(w http.ResponseWriter, req *http.Request, fp string) {
|
|||
return
|
||||
}
|
||||
|
||||
w.Header().Set("Cache-Control", "no-cache")
|
||||
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
|
||||
http.ServeContent(w, req, info.Name(), info.ModTime(), bytes.NewReader(file))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue