ok2c commented on code in PR #433: URL: https://github.com/apache/httpcomponents-client/pull/433#discussion_r1174861551
########## httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachingExec.java: ########## @@ -395,6 +427,22 @@ ClassicHttpResponse cacheAndReturnResponse( final Instant requestSent, final Instant responseReceived) throws IOException { LOG.debug("Caching backend response"); + + // handle 304 Not Modified responses + if (backendResponse.getCode() == HttpStatus.SC_NOT_MODIFIED) { Review Comment: @arturobernalg What about `AsyncCachingExec`? Should not it be doing the same? I also have a feeling that this PR contains two unrelated changes. It would better to separate them into distinct change-sets. -- 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