aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/static
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-15 19:46:58 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-15 19:46:58 +0200
commit19839337ce0c74b67c5480b71e98d97a112aa104 (patch)
tree62361763da026e109fc253d8884669ad73597deb /pkg/handler/static
parentc7b8a0958f779b9175f147edb417e2f03795e4e4 (diff)
downloadcerrado-19839337ce0c74b67c5480b71e98d97a112aa104.tar.gz
cerrado-19839337ce0c74b67c5480b71e98d97a112aa104.tar.bz2
cerrado-19839337ce0c74b67c5480b71e98d97a112aa104.zip
fix: User proper cache control paramv0.0.6
Diffstat (limited to 'pkg/handler/static')
-rw-r--r--pkg/handler/static/handler.go2
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