Bruce Murphy <pack-squid@rattus.net>
Francis Daly <francis@daoine.org>
Joachim Bauch <jojo@fistofbenztown.de>
+ Thomas Ristic <thr@bootet.net>
Duane Wessels <wessels@squid-cache.org>
#
-# $Id: cf.data.pre,v 1.368 2004/12/22 16:21:33 serassio Exp $
+# $Id: cf.data.pre,v 1.369 2004/12/23 22:17:20 hno Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
until all the child processes have been started.
DOC_END
+NAME: minimum_expiry_time
+COMMENT: (seconds)
+TYPE: time_t
+LOC: Config.minimum_expiry_time
+DEFAULT: 60 seconds
+DOC_START
+ The minimum caching time according to (Expires - Date)
+ Headers Squid honors if the object can't be revalidated
+ defaults to 60 seconds. In reverse proxy enorinments it
+ might be desirable to honor shorter object lifetimes. It
+ is most likely better to make your server return a
+ meaningful Last-Modified header however.
+DOC_END
+
EOF
/*
- * $Id: refresh.cc,v 1.67 2004/12/22 16:21:33 serassio Exp $
+ * $Id: refresh.cc,v 1.68 2004/12/23 22:17:22 hno Exp $
*
* DEBUG: section 22 Refresh Calculation
* AUTHOR: Harvest Derived
/*
* Don't look at the request to avoid no-cache and other nuisances.
* the object should have a mem_obj so the URL will be found there.
- * 60 seconds delta, to avoid objects which expire almost
- * immediately, and which can't be refreshed.
+ * minimum_expiry_time seconds delta (defaults to 60 seconds), to
+ * avoid objects which expire almost immediately, and which can't
+ * be refreshed.
*/
- /* For ESI, we use a delta of 0, as ESI objects typically can be
- * refreshed, but the expiry may be low to enforce regular
- * checks
- */
- int reason = refreshCheck(entry, NULL, ESI ? 0 : 60);
+ int reason = refreshCheck(entry, NULL, Config.minimum_expiry_time);
refreshCounts[rcStore].total++;
refreshCounts[rcStore].status[reason]++;
/*
- * $Id: structs.h,v 1.502 2004/12/22 16:21:33 serassio Exp $
+ * $Id: structs.h,v 1.503 2004/12/23 22:17:22 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
warnings;
char *store_dir_select_algorithm;
int sleep_after_fork; /* microseconds */
+ time_t minimum_expiry_time; /* seconds */
external_acl *externalAclHelperList;
#if USE_SSL