~evanj/cms

4d1a47b14ea55b155e4294b786d5092581aed000 — Evan M Jones 1 year, 7 months ago 2ff488d
Fix(headers): Tweak headers to fix ERR_CACHE_MISS on browser
back/forward after form submit.
1 files changed, 1 insertions(+), 1 deletions(-)

M internal/c/c.go
M internal/c/c.go => internal/c/c.go +1 -1
@@ 107,7 107,7 @@ func (c *Controller) HTML(w http.ResponseWriter, r *http.Request, tmpl *template
		}

		w.Header().Add("Content-Type", "text/html")
		w.Header().Add("Cache-Control", "no-store, must-revalidate, max-age=0")
		w.Header().Add("Cache-Control", "no-cache, must-revalidate, max-age=0")
		w.Header().Add("Pragma", "no-cache")
		w.Header().Add("Expires", "Sat, 26 Jul 1997 05:00:00 GMT")
		w.WriteHeader(http.StatusOK)