httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Reder" <rede...@remulak.net>
Subject Re: [PATCH] mod_cache flag directives
Date Wed, 06 Nov 2002 14:10:00 GMT
Committed. I had actually found this a couple of days ago and just hadn't
gotten to committing it, so it was already well tested. :)

Thanks for the submission.

André Malo wrote:

> Since the directives CacheIgnoreCacheControl and
> CacheIgnoreNoLastMod are AP_INIT_FLAG one should be able to set them 
> explicitely to "Off".
> 
> The attached patch does this.
> 
> nd
> 
> 
> ------------------------------------------------------------------------
> 
> Index: modules/experimental/mod_cache.c
> ===================================================================
> RCS file: /home/cvspublic/httpd-2.0/modules/experimental/mod_cache.c,v
> retrieving revision 1.61
> diff -u -r1.61 mod_cache.c
> --- modules/experimental/mod_cache.c	12 Oct 2002 07:51:09 -0000	1.61
> +++ modules/experimental/mod_cache.c	6 Nov 2002 02:03:06 -0000
> @@ -963,7 +963,7 @@
>      conf =
>          (cache_server_conf *)ap_get_module_config(parms->server->module_config,
>                                                    &cache_module);
> -    conf->no_last_mod_ignore = 1;
> +    conf->no_last_mod_ignore = flag;
>      conf->no_last_mod_ignore_set = 1;
>      return NULL;
>  
> @@ -977,7 +977,7 @@
>      conf =
>          (cache_server_conf *)ap_get_module_config(parms->server->module_config,
>                                                    &cache_module);
> -    conf->ignorecachecontrol = 1;
> +    conf->ignorecachecontrol = flag;
>      conf->ignorecachecontrol_set = 1;
>      return NULL;
>  }
> 
> mod_cache.c.diff
> 
> Content-Description:
> 
> Attached file: mod_cache.c.diff
> Content-Type:
> 
> text/plain
> Content-Encoding:
> 
> Base64
> 
> 


-- 
Paul J. Reder
-----------------------------------------------------------
"The strength of the Constitution lies entirely in the determination of each
citizen to defend it.  Only if every single citizen feels duty bound to do
his share in this defense are the constitutional rights secure."
-- Albert Einstein



Mime
View raw message