From: Bill Stoddard Date: Wed, 27 Mar 2002 21:20:37 +0000 (+0000) Subject: Ensure CACHE_OUT gets installed in front of SUBREQ_CORE on subrequsts. X-Git-Tag: 2.0.34~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca9511a57737f3466206e58f992fe0903b6a3de0;p=apache Ensure CACHE_OUT gets installed in front of SUBREQ_CORE on subrequsts. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94236 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_cache.c b/modules/experimental/mod_cache.c index 964950fd67..280341176f 100644 --- a/modules/experimental/mod_cache.c +++ b/modules/experimental/mod_cache.c @@ -974,9 +974,13 @@ register_hooks(apr_pool_t *p) ap_register_output_filter("CACHE_IN", cache_in_filter, AP_FTYPE_CONTENT_SET); + /* CACHE_OUT must go into the filter chain before SUBREQ_CORE to + * handle subrequsts. Decrementing filter type by 1 ensures this + * happens. + */ ap_register_output_filter("CACHE_OUT", cache_out_filter, - AP_FTYPE_CONTENT_SET); + AP_FTYPE_CONTENT_SET-1); ap_register_output_filter("CACHE_CONDITIONAL", cache_conditional_filter, AP_FTYPE_CONTENT_SET);