From 6c4da56a921cfaf654ca8940de02ba7c6b55b37b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 24 Sep 2009 21:21:33 +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 383d9b9a10..e9a1d0cad9 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -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(); -- 2.47.3