diff --git a/handlers/assets.go b/handlers/assets.go index 5cd2b71..34c1a63 100644 --- a/handlers/assets.go +++ b/handlers/assets.go @@ -8,6 +8,7 @@ import ( // AssetsHandler handles serving static files func AssetsHandler(w http.ResponseWriter, r *http.Request) { log.Println("Serving " + r.URL.Path[1:]) + w.Header().Set("Cache-Control", "max-age=86400") http.ServeFile(w, r, r.URL.Path[1:]) }