all repos — honk @ 91637b25741e2235c37bd2d188ff1d833006a507

my fork of honk

wonkles should be cached
Ted Unangst tedu@tedunangst.com
Wed, 09 Feb 2022 17:24:24 -0500
commit

91637b25741e2235c37bd2d188ff1d833006a507

parent

7ea17f888b19ca286e5babdbd2ae0913c3781cc1

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M bloat.gobloat.go

@@ -37,6 +37,10 @@ var words []string

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)