diff --git a/honk.go b/honk.go index 26646a9..7d9aefc 100644 --- a/honk.go +++ b/honk.go @@ -177,8 +177,10 @@ func homepage(w http.ResponseWriter, r *http.Request) { if len(honks) > 0 { modtime = honks[0].Date } + debug := false + getconfig("debug", &debug) imh := r.Header.Get("If-Modified-Since") - if imh != "" && !modtime.IsZero() { + if !debug && imh != "" && !modtime.IsZero() { ifmod, err := time.Parse(http.TimeFormat, imh) if err == nil && !modtime.After(ifmod) { w.WriteHeader(http.StatusNotModified) diff --git a/views/honkform.html b/views/honkform.html index a6df956..da83370 100644 --- a/views/honkform.html +++ b/views/honkform.html @@ -2,7 +2,7 @@