Bugfix
release-tag / release-image (push) Successful in 2m23s

This commit is contained in:
2026-09-01 08:11:16 +02:00
parent 97004838a3
commit c609c34f16
7 changed files with 80 additions and 12 deletions
+8 -3
View File
@@ -147,9 +147,14 @@ func New(c config.Config, a *auth.Service, ss *stacks.Service, n *nodes.Manager,
mux.Handle("/api/", a.Middleware(mutationOriginGuard(s.auditMiddleware(api))))
assets, _ := fs.Sub(web.FS, ".")
f := http.FileServer(http.FS(assets))
mux.Handle("GET /app.js", f)
mux.Handle("GET /styles.css", f)
mux.Handle("GET /{$}", f)
staticNoStore := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-store")
w.Header().Set("Pragma", "no-cache")
f.ServeHTTP(w, r)
})
mux.Handle("GET /app.js", staticNoStore)
mux.Handle("GET /styles.css", staticNoStore)
mux.Handle("GET /{$}", staticNoStore)
return securityHeaders(mux)
}
func (s *Server) agent(m *http.ServeMux) {