diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-15 19:46:58 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-15 19:46:58 +0200 |
commit | 19839337ce0c74b67c5480b71e98d97a112aa104 (patch) | |
tree | 62361763da026e109fc253d8884669ad73597deb | |
parent | c7b8a0958f779b9175f147edb417e2f03795e4e4 (diff) | |
download | cerrado-19839337ce0c74b67c5480b71e98d97a112aa104.tar.gz cerrado-19839337ce0c74b67c5480b71e98d97a112aa104.tar.bz2 cerrado-19839337ce0c74b67c5480b71e98d97a112aa104.zip |
fix: User proper cache control paramv0.0.6
-rw-r--r-- | pkg/handler/static/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |