/*
- * $Id: access_log.cc,v 1.42 1998/08/27 06:28:54 wessels Exp $
+ * $Id: access_log.cc,v 1.43 1998/09/30 02:53:17 wessels Exp $
*
* DEBUG: section 46 Access Log
* AUTHOR: Duane Wessels
"TCP_NEGATIVE_HIT",
"TCP_MEM_HIT",
"TCP_DENIED",
+ "TCP_OFFLINE_HIT",
"UDP_HIT",
"UDP_MISS",
"UDP_DENIED",
#
-# $Id: cf.data.pre,v 1.115 1998/09/23 21:21:05 wessels Exp $
+# $Id: cf.data.pre,v 1.116 1998/09/30 02:53:20 wessels Exp $
#
#
# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
DEFAULT: 0
DOC_NONE
+NAME: offline_mode
+TYPE: onoff
+LOC: Config.onoff.offline
+DEFAULT: off
+DOC_START
+ Enable this option and Squid will never try to validate cached
+ objects.
+DOC_END
+
EOF
/*
- * $Id: client_side.cc,v 1.404 1998/09/29 23:53:27 rousskov Exp $
+ * $Id: client_side.cc,v 1.405 1998/09/30 02:53:18 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
break;
case LOG_TCP_HIT:
case LOG_TCP_MEM_HIT:
+ case LOG_TCP_OFFLINE_HIT:
statHistCount(&Counter.client_http.hit_svc_time, svc_time);
break;
case LOG_TCP_MISS:
return 1;
if (code == LOG_TCP_MEM_HIT)
return 1;
+ if (code == LOG_TCP_OFFLINE_HIT)
+ return 1;
return 0;
}
*/
if (e->mem_status == IN_MEMORY)
http->log_type = LOG_TCP_MEM_HIT;
+ else if (Config.onoff.offline)
+ http->log_type = LOG_TCP_OFFLINE_HIT;
clientSendMoreData(data, buf, size);
}
}
if (NULL == e) {
/* this object isn't in the cache */
return LOG_TCP_MISS;
+ } else if (Config.onoff.offline) {
+ http->entry = e;
+ return LOG_TCP_HIT;
} else if (!storeEntryValidToSend(e)) {
http->entry = NULL;
return LOG_TCP_MISS;
/*
- * $Id: enums.h,v 1.133 1998/09/29 16:33:45 wessels Exp $
+ * $Id: enums.h,v 1.134 1998/09/30 02:53:19 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
LOG_TCP_NEGATIVE_HIT,
LOG_TCP_MEM_HIT,
LOG_TCP_DENIED,
+ LOG_TCP_OFFLINE_HIT,
LOG_UDP_HIT,
LOG_UDP_MISS,
LOG_UDP_DENIED,
/*
- * $Id: structs.h,v 1.236 1998/09/29 16:33:55 wessels Exp $
+ * $Id: structs.h,v 1.237 1998/09/30 02:53:19 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
#if HTTP_VIOLATIONS
int reload_into_ims;
#endif
+ int offline;
} onoff;
acl *aclList;
struct {