From b210a3ebd59ffd59a82bbddcf9b9cee3fee43598 Mon Sep 17 00:00:00 2001 From: Ada Date: Fri, 5 Apr 2024 18:20:04 +0200 Subject: [PATCH] Fix #3030 add Cache-Control header for health-check --- routers/web/healthcheck/check.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/healthcheck/check.go b/routers/web/healthcheck/check.go index d278ee1709..6be3be86d8 100644 --- a/routers/web/healthcheck/check.go +++ b/routers/web/healthcheck/check.go @@ -85,6 +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.WriteHeader(rsp.Status.ToHTTPStatus()) _, _ = w.Write(data) }