[Zope] apache 2, mod_deflate, mod_fastcgi, zope 2.7: something's slow.

Dieter Maurer dieter at handshake.de
Thu Aug 18 16:05:22 EDT 2005


Faried Nawaz wrote at 2005-8-18 02:12 +0500:
>On 8/18/05, Dieter Maurer <dieter at handshake.de> wrote:
>> Looks as if you should not use "mod_deflate".
>> 
>> Zope can perform "gzip" compression by itself.
>
>As you probably read in my previous email, I have rules defined in
>Apache to handle various browsers and proxies when dealing with
>possibly gzip'd content.  How do I do the same in Zope?

Zope's "gzip" support is enabled (for a single request) by
calling "RESPONSE.enableHTTPCompression" in that request.

You have all request headers and the full power of Python available
to dertermine when you want to call it (this gives you more power
than you have in Apache).

>(Also, I have static content on the site that can benefit from mod_deflate.)

If "static content" means "File/Image" objects, then their
so called "precondition" can get the "enableHTTPCompression".

Check beforehand, whether compression really saves something.
While I expect it for "bmp", I am not so sure for "jpg", e.g.


-- 
Dieter


More information about the Zope mailing list