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


##########
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 The points 1 and 2 do not look logically related to me. I 
would prefer the change-set split into two separate ones but I will not insist. 
I can merge the PR as is.



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