mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-14 22:16:44 +00:00
This commit introduces changes to handle the 'must-understand' directive in accordance with the updated HTTP cache-related RFC 9111. The logic ensures that the cache only stores responses with status codes it understands when the 'must-understand' directive is present. This implementation adheres to the following RFC guidance: - A cache that understands and conforms to the requirements of a response's status code may cache it when the 'must-understand' directive is present. - If the 'no-store' directive is present along with the 'must-understand' directive, the cache can ignore the 'no-store' directive if it understands the status code's caching requirements.