I am trying to check to see if Zope 2.6.2b4 is actually gzipping content before sending it and every tool I use says it is not:. http://leknor.com/code/gziped.php http://www.desilva.biz/gzip-test.php Neither seem to show the site (or any Zope site) as Gzipped. Just me or... BZ
I hate it when I answer my own questions. The answer is, it is not enabled by default. in lib/python/ZPublisher/HTTPResponse.py Line 153 set: use_HTTP_content_compression = 1 Enjoy! BZ On Monday, July 21, 2003, at 08:13 PM, BZ wrote:
I am trying to check to see if Zope 2.6.2b4 is actually gzipping content before sending it and every tool I use says it is not:.
http://leknor.com/code/gziped.php http://www.desilva.biz/gzip-test.php
Neither seem to show the site (or any Zope site) as Gzipped.
Just me or...
BZ
_______________________________________________ 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 )
On 21 Jul 2003 at 20:24, BZ wrote:
I hate it when I answer my own questions.
The answer is, it is not enabled by default.
in lib/python/ZPublisher/HTTPResponse.py
Line 153 set:
use_HTTP_content_compression = 1
Enjoy!
I think this is the wrong way to do it. Instead you should calll the enableHTTPCompression() method on the RESPONSE object. something like context.REQUEST.RESPONSE.enableHTTPCompression(context.REQUEST) This gives you more control over compression. Using your method everything will try to be compressed (except for certain mime types), which might not be what you want. -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements
[BZ wrote (bz@bwanazulia.com) on 7/21/03 7:24 PM]
I hate it when I answer my own questions.
The answer is, it is not enabled by default.
in lib/python/ZPublisher/HTTPResponse.py
Line 153 set:
use_HTTP_content_compression = 1
Enjoy!
I am running apache with mod_gzip in front of my sites and those tests give a positive on the compression FYI. so i don't think this is the only approach to gzipping, just to add a data point. <--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ MSN: zettainet@hotmail.com ~ ICQ: 51907738
I am using Apache2 and not having good luck with mod_deflate and that is why I went for the Zope solution. The problem with the zope one is, it breaks in IE and Safari for OSX. Guess I go back to the drawing board. BZ
[BZ wrote (bz@bwanazulia.com) on 7/21/03 7:24 PM]
I hate it when I answer my own questions.
The answer is, it is not enabled by default.
in lib/python/ZPublisher/HTTPResponse.py
Line 153 set:
use_HTTP_content_compression = 1
Enjoy!
I am running apache with mod_gzip in front of my sites and those tests give a positive on the compression FYI. so i don't think this is the only approach to gzipping, just to add a data point.
<--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ MSN: zettainet@hotmail.com ~ ICQ: 51907738
_______________________________________________ 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 )
BZ wrote:
The problem with the zope one is, it breaks in IE and Safari for OSX. Guess I go back to the drawing board.
if you got the time, might be good to figure otu why it breaks :-) Find the person who implemented it in Zope and see if they can help... cheers, Chris
What? Do work? Actually, I think that Safari and Mac IE are both very picky as to what types of encoding they get but they work with other types of gzip (mod_deflate/mod_gzip) for Apache. BZ
BZ wrote:
The problem with the zope one is, it breaks in IE and Safari for OSX. Guess I go back to the drawing board.
if you got the time, might be good to figure otu why it breaks :-)
Find the person who implemented it in Zope and see if they can help...
cheers,
Chris
_______________________________________________ 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 )
BZ wrote:
What? Do work?
Actually, I think that Safari and Mac IE are both very picky as to what types of encoding they get but they work with other types of gzip (mod_deflate/mod_gzip) for Apache.
Indeed. It's these little edge case bugs that Zope realyl needs to work out to go balistic... Chris
On 31 Jul 2003 at 15:13, Chris Withers wrote:
BZ wrote:
The problem with the zope one is, it breaks in IE and Safari for OSX. Guess I go back to the drawing board.
if you got the time, might be good to figure otu why it breaks :-)
Find the person who implemented it in Zope and see if they can help...
I implemented it in Zope 2.5.1 or so and submitted the patch. I use it all the time with IE 4 through 6.1 and have no problems. :-( -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements
On Thu, Jul 31, 2003 at 11:49:17AM -0400 - a wonderful day - Brad Clements wrote:
On 31 Jul 2003 at 15:13, Chris Withers wrote:
BZ wrote:
The problem with the zope one is, it breaks in IE and Safari for OSX. Guess I go back to the drawing board.
if you got the time, might be good to figure otu why it breaks :-)
Find the person who implemented it in Zope and see if they can help...
I implemented it in Zope 2.5.1 or so and submitted the patch.
I use it all the time with IE 4 through 6.1 and have no problems. :-( Is the platform clear? Is the "bug" on IE/OSX and the "all well" on IE#/Win (just guessing...)?
All the best, Stefan Drees. -- Stefan Drees, sdrees@python.net, www.sdrees.biz Fingerprint = 516C C4EF 712A B26F 15C9 C7B7 5651 6964 D508 1B56
It works in IE/Netscape (windows) and Netscape/Mozilla/OmniWeb (OSX) but not in IE/Safari (OSX). Safari is a very compliant browser, just for the record. BZ
On Thu, Jul 31, 2003 at 11:49:17AM -0400 - a wonderful day - Brad Clements wrote:
On 31 Jul 2003 at 15:13, Chris Withers wrote:
BZ wrote:
The problem with the zope one is, it breaks in IE and Safari for
OSX.
Guess I go back to the drawing board.
if you got the time, might be good to figure otu why it breaks :-)
Find the person who implemented it in Zope and see if they can help...
I implemented it in Zope 2.5.1 or so and submitted the patch.
I use it all the time with IE 4 through 6.1 and have no problems. :-( Is the platform clear? Is the "bug" on IE/OSX and the "all well" on IE#/Win (just guessing...)?
All the best, Stefan Drees. -- Stefan Drees, sdrees@python.net, www.sdrees.biz Fingerprint = 516C C4EF 712A B26F 15C9 C7B7 5651 6964 D508 1B56
_______________________________________________ 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 )
Would you be interested in seeing the errors, etc I am getting? (don't know if you are still working on it). Also, is there any thought to putting this into the config files/z2 so we don't have to muck with the Zope code to turn it on? BZ
On 31 Jul 2003 at 15:13, Chris Withers wrote:
BZ wrote:
The problem with the zope one is, it breaks in IE and Safari for OSX. Guess I go back to the drawing board.
if you got the time, might be good to figure otu why it breaks :-)
Find the person who implemented it in Zope and see if they can help...
I implemented it in Zope 2.5.1 or so and submitted the patch.
I use it all the time with IE 4 through 6.1 and have no problems. :-(
-- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements
_______________________________________________ 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 )
On 31 Jul 2003 at 10:33, BZ wrote:
Would you be interested in seeing the errors, etc I am getting?
I'm not sure how I could be helpful. It either works or it doesnt.
(don't know if you are still working on it).
Also, is there any thought to putting this into the config files/z2 so we don't have to muck with the Zope code to turn it on?
But you don't need to change the code to turn it on. Didn't you see my previous post. response.EnableHTTPCompression(request) (or something like that) gzip is enabled in the response object per-request, since it's not always a worthwhile payoff in terms of cpu time. -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements
Brad Clements wrote:
On 31 Jul 2003 at 10:33, BZ wrote:
Would you be interested in seeing the errors, etc I am getting?
I'm not sure how I could be helpful. It either works or it doesnt.
What might be helpful is to run up something like ethereal or Shane's TCPWatch.py and grab the response from Apache (which works, IIRC) and compare it with a similarly grabbed response from Zope to see what the differences are... cheers, Chris
participants (5)
-
Brad Clements -
BZ -
Chris Withers -
george donnelly -
Stefan Drees