arturobernalg opened a new pull request, #446:
URL: https://github.com/apache/httpcomponents-client/pull/446

   This pull request addresses ticket 
[HTTPCLIENT-2273](https://issues.apache.org/jira/browse/HTTPCLIENT-2273), which 
identifies an issue with the Apache HttpComponents client's handling of the 
"no-cache" directive when used with specific header fields, as outlined in RFC 
7234.
   
   Changes made to address this issue include:
   
   - Updating the caching module to correctly identify and handle "no-cache" 
directives with specific header fields. This was done by modifying the 
`responseContainsNoCacheDirective` method.
   
   -  Modifying the `handleCacheHit` method to ensure that a cached entry is 
revalidated with the origin server when a "no-cache" directive with specific 
header fields is present in the response.
   
   - Ensuring that the rest of the response is still cacheable when the 
specified header fields are present, as long as the response complies with 
other caching requirements.
   
   These changes allow an origin server to prevent the reuse of certain header 
fields in a response, while still allowing caching of the rest of the response. 
Corresponding unit tests have been updated to reflect these changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to