From 80958d5b0fdfffe24c2154e6bfb367900da0f924 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 26 Jan 2025 18:03:44 +0100 Subject: chore(webui): remove redundant set of the Cache-Control header in state get handler --- pkg/webui/states.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'pkg/webui/states.go') 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) -- cgit v1.2.3