summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-26 18:03:44 +0100
committerJulien Dessaux2025-01-26 18:04:24 +0100
commit80958d5b0fdfffe24c2154e6bfb367900da0f924 (patch)
treec5c8053eecfee57e87e856238adb095b9699da68
parentchore(deps): update dependencies (diff)
downloadtfstated-80958d5b0fdfffe24c2154e6bfb367900da0f924.tar.gz
tfstated-80958d5b0fdfffe24c2154e6bfb367900da0f924.tar.bz2
tfstated-80958d5b0fdfffe24c2154e6bfb367900da0f924.zip
chore(webui): remove redundant set of the Cache-Control header in state get handler
-rw-r--r--pkg/webui/states.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/webui/states.go b/pkg/webui/states.go
index 9e3ce27..0e956fb 100644
--- a/pkg/webui/states.go
+++ b/pkg/webui/states.go
@@ -16,8 +16,6 @@ func handleStatesGET(db *database.DB) http.Handler {
States []model.State
}
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- w.Header().Set("Cache-Control", "no-store, no-cache")
-
states, err := db.LoadStatesByPath()
if err != nil {
errorResponse(w, http.StatusInternalServerError, err)