You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by André Malo <nd...@perlig.de> on 2002/11/06 03:08:10 UTC

[PATCH] mod_cache flag directives

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
-- 
Real programmers confuse Christmas and Halloween because
DEC 25 = OCT 31.  -- Unknown

                                      (found in ssl_engine_mutex.c)


Re: [PATCH] mod_cache flag directives

Posted by "Paul J. Reder" <re...@remulak.net>.
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