Changes with Apache 2.0.44
+ *) Added code to process min and max file size directives and to
+ init the expirychk flag in mod_disk_cache. Added a clarifying
+ comment to cache_util. [Paul J. Reder]
+
*) The value emitted by ServerSignature now mimics the Server HTTP
header as controlled by ServerTokens. [Francis Daly <deva@daoine.org>]
}
/* then loop through all the cachedisable entries */
+ /* Looking for urls that contain the full cachedisable url and possibly more. */
+ /* This means we are disabling cachedisable url and below... */
for (i = 0; i < conf->cachedisable->nelts; i++) {
struct cache_disable *ent =
(struct cache_disable *)conf->cachedisable->elts;
return DECLINED;
}
+ if (len < conf->minfs || len > conf->maxfs) {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "cache_disk: URL %s failed the size check, "
+ "or is incomplete",
+ key);
+ return DECLINED;
+ }
+
/* Allocate and initialize cache_object_t and disk_cache_object_t */
obj = apr_pcalloc(r->pool, sizeof(*obj));
obj->vobj = dobj = apr_pcalloc(r->pool, sizeof(*dobj));
conf->space = DEFAULT_CACHE_SIZE;
conf->maxfs = DEFAULT_MAX_FILE_SIZE;
conf->minfs = DEFAULT_MIN_FILE_SIZE;
+ conf->expirychk = 1;
conf->cache_root = NULL;
conf->cache_root_len = 0;
static const char
*set_cache_exchk(cmd_parms *parms, void *in_struct_ptr, int flag)
{
- /* XXX
disk_cache_conf *conf = ap_get_module_config(parms->server->module_config,
&disk_cache_module);
- */
+ conf->expirychk = flag;
+
return NULL;
}
static const char