diff --git a/api/page.go b/api/page.go index 27e1ddd..e6f43cd 100644 --- a/api/page.go +++ b/api/page.go @@ -81,6 +81,7 @@ func StaticFileServerWithContentType(fsys http.FileSystem) http.Handler { path := r.URL.Path if ext := filepath.Ext(path); ext != "" { if ct, ok := contentTypes[ext]; ok { + w.Header().Set("Cache-Control", "public, max-age=31536000") w.Header().Set("Content-Type", ct) } }