cache css pls
parent
c3bf31894c
commit
786ea3ef8f
|
|
@ -35,6 +35,7 @@ func (h Handler) ui(w http.ResponseWriter, r *http.Request) error {
|
||||||
return h.uiIndex(w, r)
|
return h.uiIndex(w, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w.Header().Set("Cache-Control", "max-age=2592000")
|
||||||
fs := http.FileServer(http.FS(embeddedDir))
|
fs := http.FileServer(http.FS(embeddedDir))
|
||||||
r.URL.Path = fmt.Sprintf("/testdata/%s", strings.TrimPrefix(r.URL.Path, "/experimental/ui"))
|
r.URL.Path = fmt.Sprintf("/testdata/%s", strings.TrimPrefix(r.URL.Path, "/experimental/ui"))
|
||||||
fs.ServeHTTP(w, r)
|
fs.ServeHTTP(w, r)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue