if (head->flags.refresh_ims)
storeAppendPrintf(entry, " refresh-ims");
-#if HTTP_VIOLATIONS
+ if (head->flags.store_stale)
+ storeAppendPrintf(entry, " store-stale");
+
+#if USE_HTTP_VIOLATIONS
if (head->flags.override_expire)
storeAppendPrintf(entry, " override-expire");
double pct = 0.0;
time_t max = 0;
int refresh_ims = 0;
-#if HTTP_VIOLATIONS
+ int store_stale = 0;
+
+#if USE_HTTP_VIOLATIONS
int override_expire = 0;
int override_lastmod = 0;
while ((token = strtok(NULL, w_space)) != NULL) {
if (!strcmp(token, "refresh-ims")) {
refresh_ims = 1;
-#if HTTP_VIOLATIONS
+ } else if (!strcmp(token, "store-stale")) {
+ store_stale = 1;
+#if USE_HTTP_VIOLATIONS
} else if (!strcmp(token, "override-expire"))
override_expire = 1;
if (refresh_ims)
t->flags.refresh_ims = 1;
-#if HTTP_VIOLATIONS
+ if (store_stale)
+ t->flags.store_stale = 1;
+
+#if USE_HTTP_VIOLATIONS
if (override_expire)
t->flags.override_expire = 1;
define["FOLLOW_X_FORWARDED_FOR"]="--enable-follow-x-forwarded-for"
define["FOLLOW_X_FORWARDED_FOR&&DELAY_POOLS"]="--enable-follow-x-forwarded-for and --enable-delay-pools"
define["FOLLOW_X_FORWARDED_FOR&&ICAP_CLIENT"]="--enable-follow-x-forwarded-for and --enable-icap-client"
- define["HTTP_VIOLATIONS"]="--enable-http-violations"
+ define["FOLLOW_X_FORWARDED_FOR&&LINUX_NETFILTER"]="--enable-follow-x-forwarded-for and --enable-linux-netfilter"
+ define["USE_HTTP_VIOLATIONS"]="--enable-http-violations"
define["ICAP_CLIENT"]="--enable-icap-client"
define["SQUID_SNMP"]="--enable-snmp"
define["USE_ADAPTATION"]="--enable-ecap or --enable-icap-client"
struct {
unsigned int icase:1;
unsigned int refresh_ims:1;
-#if HTTP_VIOLATIONS
+ unsigned int store_stale:1;
+#if USE_HTTP_VIOLATIONS
unsigned int override_expire:1;
unsigned int override_lastmod:1;
unsigned int reload_into_ims:1;