summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAda <ada@gnous.eu>2024-04-05 22:08:22 +0200
committerAda <ada@gnous.eu>2024-04-05 22:08:22 +0200
commitd2ff8f8720a5d3cc65b8d94c1458a8b4c569bb4c (patch)
treec046fd68fcca0de50aa5f85629867d64bd2cefce
parentFix #3030 add Cache-Control header for health-check (diff)
downloadforgejo-d2ff8f8720a5d3cc65b8d94c1458a8b4c569bb4c.tar.xz
forgejo-d2ff8f8720a5d3cc65b8d94c1458a8b4c569bb4c.zip
Remove old proxy backwards compatibility
-rw-r--r--routers/web/healthcheck/check.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/healthcheck/check.go b/routers/web/healthcheck/check.go
index 6be3be86d8..b21971c9e2 100644
--- a/routers/web/healthcheck/check.go
+++ b/routers/web/healthcheck/check.go
@@ -85,7 +85,7 @@ func Check(w http.ResponseWriter, r *http.Request) {
data, _ := json.MarshalIndent(rsp, "", " ")
w.Header().Set("Content-Type", "application/json")
- w.Header().Set("Cache-Control", "no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate")
+ w.Header().Set("Cache-Control", "no-store")
w.WriteHeader(rsp.Status.ToHTTPStatus())
_, _ = w.Write(data)
}