From 5f2806363d8bd587a23d8048a9db2c3470bacfc7 Mon Sep 17 00:00:00 2001 From: luke miles Date: Mon, 26 Jun 2023 19:27:30 -0700 Subject: [PATCH] trees: lower cache control from one hour to 5 seconds (#104) --- api/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tree.go b/api/tree.go index 32854bc..3103c35 100644 --- a/api/tree.go +++ b/api/tree.go @@ -267,6 +267,6 @@ func (s *Server) GetTree(w http.ResponseWriter, r *http.Request) { tr.LeafCount = len(tr.UnhashedLeaves) - w.Header().Set("Cache-Control", "public, max-age=3600") + w.Header().Set("Cache-Control", "public, max-age=5") s.sendJSON(r, w, tr) }