From 786ea3ef8f4eb4f08efd26a41f1430c4a242da48 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Thu, 8 May 2025 11:08:12 -0600 Subject: [PATCH] cache css pls --- src/cmd/server/handler/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/server/handler/ui.go b/src/cmd/server/handler/ui.go index 851d996..35fcfac 100644 --- a/src/cmd/server/handler/ui.go +++ b/src/cmd/server/handler/ui.go @@ -35,6 +35,7 @@ func (h Handler) ui(w http.ResponseWriter, r *http.Request) error { return h.uiIndex(w, r) } + w.Header().Set("Cache-Control", "max-age=2592000") fs := http.FileServer(http.FS(embeddedDir)) r.URL.Path = fmt.Sprintf("/testdata/%s", strings.TrimPrefix(r.URL.Path, "/experimental/ui")) fs.ServeHTTP(w, r)