]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Philippe Lantin <plantin@cobaltgroup.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Sep 2009 09:21:33 +0000 (21:21 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Sep 2009 09:21:33 +0000 (21:21 +1200)
Bug 2624: Invalid response for IMS request

Squid forgot to verify the client provided If-Modified-Since when
seeing a 304 from upstream.

src/client_side_reply.cc

index 383d9b9a105cf309d94f35bcc4b359000e883d20..e9a1d0cad982360fa32ae04a357b3f733cc53702 100644 (file)
@@ -368,7 +368,7 @@ clientReplyContext::handleIMSReply(StoreIOBuffer result)
 
         // if client sent IMS
 
-        if (http->request->flags.ims) {
+        if (http->request->flags.ims && !old_entry->modifiedSince(http->request)) {
             // forward the 304 from origin
             debugs(88, 3, "handleIMSReply: origin replied 304, revalidating existing entry and forwarding 304 to client");
             sendClientUpstreamResponse();