]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
We need to update entry timestamps for 304 replies when we
authorwessels <>
Sat, 24 Apr 1999 05:01:23 +0000 (05:01 +0000)
committerwessels <>
Sat, 24 Apr 1999 05:01:23 +0000 (05:01 +0000)
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.

src/client_side.cc

index 953039f86929f355a4510c8d39303f96c790e077..f38b1b3c80a13fc5b5d96f535a279d6a4542b14d 100644 (file)
@@ -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;
        }