From bc4cc84d1731291f5ab521e0468859dd9ef16a77 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Wed, 27 Mar 2002 21:20:37 +0000 Subject: [PATCH] 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 --- modules/experimental/mod_cache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.40.0