httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <>
Subject Re: Problem with cache+proxy and multiple brigade
Date Mon, 14 Oct 2002 06:52:41 GMT
Matthieu Estrade wrote:

> I found a problem with mod_cache and mod_proxy...
> when cache is storing the data + headers in memory, it doesn't care 
> about Transfert-Encoding...

AFAIK proxy should always dechunck any chunked data it receives before 
passing it up the stack. The caching stuff should never see chunked data.

If cache does, it could be because someone is putting the cache filter 
in the wrong place in the stack, ie before the dechunk filter.

> +    /* Delete Transfer-Encoding if present, coming from reverse proxy */
> +    
> +    if (apr_table_get(r->headers_out,"Transfer-Encoding")){
> +    	apr_table_unset(r->headers_out,"Transfer-Encoding");
> +    }
> + 

Just arbly deleting the transfer encoding will definitely not work. You 
need to make sure the content is dechunked as well. Only the dechunk 
filter should remove the transfer encoding header.

-----------------------------------------		"There's a moon
					over Bourbon Street

View raw message