On Thu, Jul 07, 2005 at 09:22:25PM +0200, [EMAIL PROTECTED] wrote: > Have you checked > http://mail-archives.apache.org/mod_mbox/httpd-dev/200504.mbox/[EMAIL > PROTECTED] ? > > It contains a small patch which was not discussed any further here.
Hi, i tried your patch today. Unfortunately cache->handle->cache_obj->info.status isn't set during cache_out_filter(), but cache->handle->status is. (It gets set in mod_disk_cache.c:499 during recall_headers().) I tried to use that and it seems to work. However, not knowing much of how the whole thing fits together, i do not claim that this is the solution. An updated version of your patch below. Thanks && Regards Hansjoerg --- mod_cache.c.orig 2005-04-11 17:47:03.000000000 +0200 +++ mod_cache.c 2005-07-11 16:52:35.913264943 +0200 @@ -219,7 +219,10 @@ ap_log_error(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, r->server, "cache: running CACHE_OUT filter"); - + + /* restore status of cached response */ + r->status = cache->handle->status; + /* recall_headers() was called in cache_select_url() */ cache->provider->recall_body(cache->handle, r->pool, bb); -- IT Services University of Innsbruck CFB4 D6E7 33F4 34C0 18B9 6661 E355 4337 3F8B D9C2 http://purl.org/net/hansjoerg.pehofer/public_key
signature.asc
Description: Digital signature