fix: prevent stale web ui caching
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user