Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit 2dd591a

Browse files
committed
Set the header Cache-Control to "no-store, max-age=0".
1 parent 5bb1706 commit 2dd591a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (h *ProbeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
3737
elapsed := time.Since(start)
3838
klog.Infof("Probe %s returning %d in %s", r.URL.Path, statusCode, elapsed)
3939

40-
w.Header().Set("Cache-Control", "no-cache")
40+
w.Header().Set("Cache-Control", "no-store, max-age=0")
4141
w.WriteHeader(statusCode)
4242
w.Write([]byte(http.StatusText(statusCode)))
4343
}

0 commit comments

Comments
 (0)