fix: User proper cache control param
diff --git a/pkg/handler/static/handler.go b/pkg/handler/static/handler.go index 0973d75ec8bf59c89111050112bb0f43368cb147..361f6900b8266e8ccf0d8aca25b995b91ff3a97c 100644 --- a/pkg/handler/static/handler.go +++ b/pkg/handler/static/handler.go @@ -23,7 +23,7 @@ e = filepath.Ext(f) m = mime.TypeByExtension(e) ) ext.SetMIME(w, m) - w.Header().Add("Cache-Control", "immutable") + w.Header().Add("Cache-Control", "max-age=31536000") http.ServeFileFS(w, r, staticFs, f) return nil }, nil