/*
- * $Id: http.cc,v 1.274 1998/05/22 23:44:12 wessels Exp $
+ * $Id: http.cc,v 1.275 1998/05/26 23:04:13 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
httpHeaderInit(hdr_out);
/* append our IMS header */
- if (entry && entry->lastmod && request->method == METHOD_GET)
+ if (entry && entry->lastmod > -1 && request->method == METHOD_GET)
httpHeaderPutTime(hdr_out, HDR_IF_MODIFIED_SINCE, entry->lastmod);
strConnection = httpHeaderGetList(hdr_in, HDR_CONNECTION);
/*
- * $Id: store.cc,v 1.418 1998/05/26 15:48:28 wessels Exp $
+ * $Id: store.cc,v 1.419 1998/05/26 23:04:15 wessels Exp $
*
* DEBUG: section 20 Storage Manager
* AUTHOR: Harvest Derived
if (mem_obj_flag)
e->mem_obj = new_MemObject(url, log_url);
debug(20, 3) ("new_StoreEntry: returning %p\n", e);
+ e->expires = e->lastmod = e->lastref = e->timestamp = -1;
return e;
}
if (served_date < 0)
served_date = squid_curtime;
entry->expires = reply->expires;
- entry->lastmod = reply->last_modified;
+ if (reply->last_modified > -1)
+ entry->lastmod = reply->last_modified;
if (entry->lastmod < 0)
entry->lastmod = served_date;
entry->timestamp = served_date;