wonkles should be cached
This commit is contained in:
parent
8c587589b2
commit
1a20d0cb08
4
bloat.go
4
bloat.go
|
@ -37,6 +37,10 @@ func servewonkles(w http.ResponseWriter, r *http.Request) {
|
||||||
for _, l := range strings.Split(wonkles, "\n") {
|
for _, l := range strings.Split(wonkles, "\n") {
|
||||||
words = append(words, l)
|
words = append(words, l)
|
||||||
}
|
}
|
||||||
|
if !debugMode {
|
||||||
|
w.Header().Set("Cache-Control", "max-age=7776000")
|
||||||
|
}
|
||||||
|
|
||||||
j := junk.New()
|
j := junk.New()
|
||||||
j["wordlist"] = words
|
j["wordlist"] = words
|
||||||
j.Write(w)
|
j.Write(w)
|
||||||
|
|
Loading…
Reference in New Issue