From 58ec0bacb661f705b02db9bb584a551d1864f71a Mon Sep 17 00:00:00 2001 From: Felix Hanley Date: Thu, 5 Mar 2020 22:59:27 +1100 Subject: Update cache-control --- cmd/server/hits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/server/hits.go b/cmd/server/hits.go index 9adb455..36a1e83 100644 --- a/cmd/server/hits.go +++ b/cmd/server/hits.go @@ -53,6 +53,7 @@ func handleHitCounter(db sws.CounterStore) http.HandlerFunc { } // TODO restrict to site sites w.Header().Set("Access-Control-Allow-Origin", "*") + w.Header().Set("Cache-Control", "no-cache") w.Header().Set("Content-Type", "image/gif") w.Write(gifBytes) return @@ -80,7 +81,6 @@ func handleCounter(addr string) http.HandlerFunc { // TODO restrict to site sites w.Header().Set("Access-Control-Allow-Origin", "*") w.Header().Set("Etag", etag) - w.Header().Set("Cache-Control", "public") w.Header().Set("Content-Type", "application/javascript") if _, err := io.Copy(w, &buf); err != nil { -- cgit v1.2.3