From 1a20d0cb087daadb3d148b612aff35828dd27c2b Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 9 Feb 2022 17:24:24 -0500 Subject: [PATCH] wonkles should be cached --- bloat.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bloat.go b/bloat.go index 379a480..f634369 100644 --- a/bloat.go +++ b/bloat.go @@ -37,6 +37,10 @@ func servewonkles(w http.ResponseWriter, r *http.Request) { for _, l := range strings.Split(wonkles, "\n") { words = append(words, l) } + if !debugMode { + w.Header().Set("Cache-Control", "max-age=7776000") + } + j := junk.New() j["wordlist"] = words j.Write(w)