[Zope-dev] Re: HTTP Compression granularity.
Maik Jablonski
maik.jablonski@uni-bielefeld.de
Tue, 13 May 2003 15:37:50 +0200
Romain Slootmaekers wrote:
> browsing through the code, and the changelist for 2.6 I found the HTTP
> compression feature. Apparently it's a thing you need to turn on in
> ZPublisher.HTTPResponse by changing an option in the code. (yuk :()
That's wrong... You don't have to touch the sources for this trick.
> This makes it an all or nothing feature. I'd like to have more
> granularity and want to be able to turn it on/off for all content in
> specific folders.
You can enable HTTPCompression simply by calling
<dtml-call "RESPONSE.enableHTTPCompression(REQUEST)">
in your index_html for the desired folders.
Cheers, Maik