ok2c commented on code in PR #609:
URL: 
https://github.com/apache/httpcomponents-client/pull/609#discussion_r1907633856


##########
httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java:
##########
@@ -248,6 +256,9 @@ protected boolean isExplicitlyCacheable(final 
ResponseCacheControl cacheControl,
         if (response.containsHeader(HttpHeaders.EXPIRES)) {
             return true;
         }
+        if (cacheControl.getMaxAge() == 0 && cacheControl.isMustRevalidate()) {

Review Comment:
   @arturobernalg Where in RFC 9111 is this behavior defined? Why does 
`max-age` need to be zero and not one, for instance?



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