/*
- * $Id: HttpRequest.cc,v 1.19 1998/12/05 00:54:12 wessels Exp $
+ * $Id: HttpRequest.cc,v 1.20 1999/01/11 22:23:07 wessels Exp $
*
* DEBUG: section 73 HTTP Request
* AUTHOR: Duane Wessels
req->protocol = protocol;
if (urlpath)
stringReset(&req->urlpath, urlpath);
- req->max_age = -1;
req->max_forwards = -1;
#if DELAY_POOLS
req->delay_id = 0;
/*
- * $Id: refresh.cc,v 1.45 1998/11/13 20:50:56 wessels Exp $
+ * $Id: refresh.cc,v 1.46 1999/01/11 22:23:07 wessels Exp $
*
* DEBUG: section 22 Refresh Calculation
* AUTHOR: Harvest Derived
rc->negative_age_stale++;
return 1;
}
- if (request->max_age > -1) {
- if (age > request->max_age) {
+ if (request->cache_control && request->cache_control->max_age > -1) {
+ if (age > request->cache_control->max_age) {
debug(22, 3) ("refreshCheck: YES: age > client-max-age\n");
rc->request_max_age_stale++;
return 1;
/*
- * $Id: structs.h,v 1.255 1999/01/08 21:12:18 wessels Exp $
+ * $Id: structs.h,v 1.256 1999/01/11 22:23:08 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
request_flags flags;
HttpHdrCc *cache_control;
HttpHdrRange *range;
- time_t max_age;
float http_ver;
time_t ims;
int imslen;