diff options
author | Ada <ada@gnous.eu> | 2024-04-05 22:08:22 +0200 |
---|---|---|
committer | Ada <ada@gnous.eu> | 2024-04-05 22:08:22 +0200 |
commit | d2ff8f8720a5d3cc65b8d94c1458a8b4c569bb4c (patch) | |
tree | c046fd68fcca0de50aa5f85629867d64bd2cefce /routers | |
parent | Fix #3030 add Cache-Control header for health-check (diff) | |
download | forgejo-d2ff8f8720a5d3cc65b8d94c1458a8b4c569bb4c.tar.xz forgejo-d2ff8f8720a5d3cc65b8d94c1458a8b4c569bb4c.zip |
Remove old proxy backwards compatibility
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/healthcheck/check.go | 2 |
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) } |