From 92541bb7300fce061933d7cc2f7cb2d03922396c Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 24 Sep 2009 21:24:45 +1200 Subject: [PATCH] Author: Philippe Lantin 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index 541abc7ed2..f10ee15757 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -366,7 +366,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(); -- 2.47.2