From 19839337ce0c74b67c5480b71e98d97a112aa104 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 15 Jun 2024 19:46:58 +0200 Subject: fix: User proper cache control param --- pkg/handler/static/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/handler/static/handler.go b/pkg/handler/static/handler.go index 0973d75..361f690 100644 --- a/pkg/handler/static/handler.go +++ b/pkg/handler/static/handler.go @@ -23,7 +23,7 @@ func ServeStaticHandler() (ext.ErrorRequestHandler, error) { 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 -- cgit v1.2.3