From 085b937d4a0f64362eed77859292fe356ac2cc9d Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Thu, 23 Jun 2022 21:16:26 -0400 Subject: client: update `buildHeaders` Add Cache-Control header --- client/client.go | 1 + 1 file changed, 1 insertion(+) (limited to 'client/client.go') diff --git a/client/client.go b/client/client.go index a60ee00..a2868f2 100644 --- a/client/client.go +++ b/client/client.go @@ -26,5 +26,6 @@ func Get(url string) (*http.Response, error) { func buildHeaders(req *http.Request) *http.Request { req.Header.Set("User-Agent", "peach/"+version.Version+ " peach.ricketyspace.net") + req.Header.Set("Cache-Control", "max-age=0") return req } -- cgit v1.2.3