arturobernalg commented on code in PR #496:
URL: 
https://github.com/apache/httpcomponents-client/pull/496#discussion_r1369243344


##########
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java:
##########
@@ -258,7 +253,7 @@ protected boolean isExplicitlyNonCacheable(final 
ResponseCacheControl cacheContr
     }
 
     protected boolean isExplicitlyCacheable(final ResponseCacheControl 
cacheControl, final HttpResponse response) {

Review Comment:
   We're calling `isExplicitlyCacheable` twice within the `isResponseCacheable` 
method. Maybe we could  storing its result in a variable and reusing it.



-- 
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: dev-unsubscr...@hc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to