Merge pull request #293 from JacobEvelyn/master

Change tracker.js Cache-Control header to no-store
This commit is contained in:
Jack Ellis 2020-02-13 21:43:22 -06:00 committed by GitHub
commit 0dd6d41580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ func (c *Collector) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// headers to prevent caching
w.Header().Set("Content-Type", "image/gif")
w.Header().Set("Expires", "Mon, 01 Jan 1990 00:00:00 GMT")
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
w.Header().Set("Cache-Control", "no-store")
w.Header().Set("Pragma", "no-cache")
// response, 1x1 px transparent GIF