Skip to content

Commit

Permalink
trees: lower cache control from one hour to 5 seconds (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
worm-emoji authored Jun 27, 2023
1 parent 616c92f commit 5f28063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

1 comment on commit 5f28063

@vercel
Copy link

@vercel vercel bot commented on 5f28063 Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lanyard – ./

lanyard-production.mf.dev
lanyard-git-main.mf.dev
lanyard.mf.dev

Please sign in to comment.