all repos — honk @ 960e9141ae5a1e57bb83e21e071b761650af965f

my fork of honk

need to set cache control
Ted Unangst tedu@tedunangst.com
Mon, 11 May 2020 16:27:06 -0400
commit

960e9141ae5a1e57bb83e21e071b761650af965f

parent

0147b6189e2ca3c83b33506bb7d222eb3dc8beaf

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M bloat.gobloat.go

@@ -17,10 +17,10 @@ package main

import ( "fmt" - "regexp" "image" "image/png" "net/http" + "regexp" "strconv" "strings"

@@ -52,6 +52,7 @@ img.Pix[p+2] = b

img.Pix[p+3] = 255 } } + writer.Header().Set("Cache-Control", "max-age="+somedays()) png.Encode(writer, img) }

@@ -78,4 +79,3 @@ src := fmt.Sprintf("https://%s/flag/%s", serverName, code)

return fmt.Sprintf(`<img class="emu" title="%s" src="%s">`, "flag", src) }) } -