]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Philippe Lantin <plantin@cobaltgroup.com>
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 18 Sep 2009 20:40:02 +0000 (22:40 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 18 Sep 2009 20:40:02 +0000 (22:40 +0200)
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();