Update cache control for web assets

The commit [1] introduced the `cache-control` header field with the value
`no-cache`. This enforces any cache to revalidate. Apparently this does
not prohibit *FireFox* from caching the assets. `no-cache, no-store,
must-revalidate` does by prohibiting to even save anything of the
request.

[1] c3850708c1
This commit is contained in:
Max Leonard Inden 2017-05-05 09:30:09 +02:00
parent 02f14775e5
commit 9cc00323ca
No known key found for this signature in database
GPG Key ID: 5403C5464810BC26
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))
}