From 7c261232dd907b7742531d7e3c4052cf1063c339 Mon Sep 17 00:00:00 2001 From: NI Date: Sun, 2 May 2021 10:32:20 +0800 Subject: [PATCH] No longer cache the landing page (/). This will resolve the problems caused by page caches --- application/controller/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controller/home.go b/application/controller/home.go index 9a87f4a..eedabaf 100644 --- a/application/controller/home.go +++ b/application/controller/home.go @@ -29,5 +29,5 @@ type home struct { } func (h home) Get(w http.ResponseWriter, r *http.Request, l log.Logger) error { - return serveStaticCachePage("index.html", w, r, l) + return serveStaticPage("index.html", http.StatusOK, w, r, l) }