Merge pull request #772 from prometheus/cache-control

Update cache control for web assets
This commit is contained in:
Max Inden 2017-05-09 15:17:29 +02:00 committed by GitHub
commit 6784e300cf
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}