arturobernalg commented on code in PR #609: URL: https://github.com/apache/httpcomponents-client/pull/609#discussion_r1907722968
########## 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: @ok2c The reason max-age=0 is required is that it explicitly marks the response as immediately stale, triggering revalidation on every request. A value of 1 would permit reuse for that duration, bypassing the strict revalidation requirement. -- 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