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

   This PR fixes a bug where the same Cache-Control 
[f3f07a3](https://github.com/apache/httpcomponents-client/pull/420) header is 
parsed twice, leading to incorrect performance issues. The parsing code has 
been extracted from the calculateFreshnessLifetime method and is now enhanced 
to include the main cache control directive that the isExplicitlyNonCacheable 
method uses to make its decision. This makes the decision based on the main 
cache control directive instead of parsing the header twice.
   
   Additionally, this PR adds a new method parseCacheControlHeader to the 
CacheControlParser class which parses the Cache-Control header and returns a 
CacheControl instance. This new method improves the parsing of the 
Cache-Control header and provides more accurate parsing of the different 
directives.
   
   This PR also includes some code cleanup and refactoring.


-- 
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