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)

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;
 }

Reply via email to