blob: cef999b70d1958b880995b7766903a8bc55022be (
plain)
1
2
3
4
5
6
7
8
9
10
|
package webui
import "net/http"
func cache(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "public, max-age=31536000, immutable")
next.ServeHTTP(w, r)
})
}
|