From 95254c2d26df9eeae8d702579ef9cc5bbde7c946 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 21 Apr 2026 14:29:11 -0600 Subject: [PATCH] Add some godoc --- modules/caddyhttp/reverseproxy/reverseproxy.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/caddyhttp/reverseproxy/reverseproxy.go b/modules/caddyhttp/reverseproxy/reverseproxy.go index c5375793f..9605ae654 100644 --- a/modules/caddyhttp/reverseproxy/reverseproxy.go +++ b/modules/caddyhttp/reverseproxy/reverseproxy.go @@ -1600,9 +1600,16 @@ type UpstreamSource interface { } // cachingUpstreamSource is an upstream source that caches its upstreams. +// The relevant cache entry can be cleared/reset for a given request during +// retries if a request fails. This can help ensure that down backends are +// not retried. // EXPERIMENTAL: Subject to change. type cachingUpstreamSource interface { UpstreamSource + + // ResetCache clears any cached entry related to the given request. + // The next time GetUpstreams is called, it should have new upstream + // information for the given request. ResetCache(*http.Request) error }