Faried Nawaz wrote at 2005-8-18 02:12 +0500: >On 8/18/05, Dieter Maurer <[EMAIL PROTECTED]> 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 _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )