No longer cache the landing page (/). This will resolve the problems caused by page caches

This commit is contained in:
NI
2021-05-02 10:32:20 +08:00
parent 4bb90f1834
commit 7c261232dd

View File

@@ -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)
}