chore(webui): remove redundant set of the Cache-Control header in state get handler

This commit is contained in:
Julien Dessaux 2025-01-26 18:03:44 +01:00
parent 20fa1d02be
commit 80958d5b0f
Signed by: adyxax
GPG key ID: F92E51B86E07177E

View file

@ -16,8 +16,6 @@ func handleStatesGET(db *database.DB) http.Handler {
States []model.State States []model.State
} }
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", "no-store, no-cache")
states, err := db.LoadStatesByPath() states, err := db.LoadStatesByPath()
if err != nil { if err != nil {
errorResponse(w, http.StatusInternalServerError, err) errorResponse(w, http.StatusInternalServerError, err)