From cfd5abd20b440dc4f54bb4c3e247eb264f2f1fd7 Mon Sep 17 00:00:00 2001 From: k1LoW Date: Wed, 20 Dec 2023 14:26:01 +0900 Subject: [PATCH] bonsai --- rfc9111/shared.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfc9111/shared.go b/rfc9111/shared.go index 7d39fbe..d54fabf 100644 --- a/rfc9111/shared.go +++ b/rfc9111/shared.go @@ -153,7 +153,7 @@ func (s *Shared) Storable(req *http.Request, res *http.Response, now time.Time) return false, time.Time{} } - // Servers that wish to control caching of these responses are encouraged to emit appropriate Cache-Control response header fields (https://httpwg.org/specs/rfc9111.html#rfc.section.7.3) + // In RFC 9111, Servers that wish to control caching of responses with Set-Cookie headers are encouraged to emit appropriate Cache-Control response header fields (https://httpwg.org/specs/rfc9111.html#rfc.section.7.3) // But to beat on the safe side, this package does not store responses with Set-Cookie headers by default, similar to NGINX. // THIS IS NOT RFC 9111. if req.Header.Get("Set-Cookie") != "" && !s.storeRequestWithSetCookieHeader {