diff --git a/web.go b/web.go index 2c6f65b..107f929 100644 --- a/web.go +++ b/web.go @@ -2105,7 +2105,9 @@ func avatate(w http.ResponseWriter, r *http.Request) { } 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) }