all repos — honk @ 4aa53c8afdcf632432fb60d7f3b6c271d0343be6

my fork of honk

don't cache avatar in debugmode
Ted Unangst tedu@tedunangst.com
Sun, 14 Nov 2021 23:25:45 -0500
commit

4aa53c8afdcf632432fb60d7f3b6c271d0343be6

parent

d503a9ebd0782130bfa7704747f79207a9461194

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

jump to
M web.goweb.go

@@ -2105,7 +2105,9 @@ loadAvatarColors()

} n := r.FormValue("a") a := genAvatar(n) - w.Header().Set("Cache-Control", "max-age="+somedays()) + if !debugMode { + w.Header().Set("Cache-Control", "max-age="+somedays()) + } w.Write(a) }