Yo, 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 :() 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. Is this possible? TIA, Romain.
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
Romain Slootmaekers wrote at 2003-5-13 15:29 +0200:
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 :()
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.
An alternative would be to use Apache's "mod_gzip" to selectively compress pages. Dieter
participants (3)
-
Dieter Maurer -
Maik Jablonski -
Romain Slootmaekers