fix: prevent stale web ui caching

This commit is contained in:
OpenClaw Agent
2026-09-22 04:32:22 +08:00
parent beeee8191b
commit 2c8531d9b9
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -1133,6 +1133,7 @@ func (s *Server) fileHandler(w http.ResponseWriter, r *http.Request) {
http.NotFound(w, r)
return
}
w.Header().Set("Cache-Control", "no-store")
title := s.HTMLTitle
if title == "" {
title = "CuteHttpFileServer"