From: wessels <> Date: Sat, 24 Apr 1999 05:01:23 +0000 (+0000) Subject: We need to update entry timestamps for 304 replies when we X-Git-Tag: SQUID_3_0_PRE1~2252 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb4eb1ae3571f16258b29f81245d61aff76f658e;p=thirdparty%2Fsquid.git We need to update entry timestamps for 304 replies when we just give the 304 reply to the client. We already update timestamps when we get a 304 from the server but send a 200 to the client. --- diff --git a/src/client_side.cc b/src/client_side.cc index 953039f869..f38b1b3c80 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.443 1999/04/15 06:15:50 wessels Exp $ + * $Id: client_side.cc,v 1.444 1999/04/23 23:01:23 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -451,7 +451,9 @@ clientHandleIMSReply(void *data, char *buf, ssize_t size) /* the client can handle this reply, whatever it is */ http->log_type = LOG_TCP_REFRESH_MISS; if (HTTP_NOT_MODIFIED == mem->reply->sline.status) { - http->old_entry->timestamp = squid_curtime; + httpReplyUpdateOnNotModified(http->old_entry->mem_obj->reply, + mem->reply); + storeTimestampsSet(http->old_entry); http->old_entry->refcount++; http->log_type = LOG_TCP_REFRESH_HIT; }