Skip to content

Commit

Permalink
bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Dec 20, 2023
1 parent 1d20749 commit c738736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rfc9111/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (s *Shared) Storable(req *http.Request, res *http.Response, now time.Time)
return false, time.Time{}
}

// 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)
// 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 (see 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 {
Expand Down

0 comments on commit c738736

Please sign in to comment.