[Zope-dev] RAMCacheManager and gzip

Adrian Hungate adrian@haqa.co.uk
Mon, 10 Dec 2001 19:32:56 -0000


Ok, I stand corrected (and with egg on my face for abusing zlib). The moral
of the story is that zlib.compress(data) is NOT the same as gzip <data
>browser (Which I guess I should have known). Thanks for the pointer Jan!

I think I have figured out what I did wrong, but I now have compression
working for IE

If anyone wants the patch to play with, drop me a line (It's a file to add
to the PatchKit folder. PatchKit auto-loads all patches it finds - just
restart Zope, or refresh PatchKit).

Adrian...

--
Adrian Hungate

All views expressed in this email are those of the whole world, however some
people don't realise this yet.

----- Original Message -----
From: "Adrian Hungate" <adrian@haqa.co.uk>
To: "Martijn Jacobs" <mart@eastsite.nl>; <adrian@haga.co.uk>
Cc: <zope-dev@zope.org>
Sent: Monday, December 10, 2001 6:13 PM
Subject: Re: [Zope-dev] RAMCacheManager and gzip


> Ok, that was my though, so I have uninstalled IE6, just incase the install
> was broken, and I will do some more testing tonight. I really need to put
> this to one side in favour of another caching problem I have been asked to
> look at though. I will probably pick it up again in a day or two.
>
> Adrian...
>
> --
> Adrian Hungate
>
> All views expressed in this email are those of the whole world, however
some
> people don't realise this yet.
>
> ----- Original Message -----
> From: "Martijn Jacobs" <mart@eastsite.nl>
> To: <adrian@haga.co.uk>
> Cc: <zope-dev@zope.org>
> Sent: Monday, December 10, 2001 2:42 PM
> Subject: Re: [Zope-dev] RAMCacheManager and gzip
>
>
> > > There is zlib support in Python, and it is used in Medusa already.
> ZServer
> > > does not call it, but the compression stuff is there.
> > >
> > > There is one good reason not to use zlib though, Micro$oft Internet
> > > Distorter does not support content-encoding: gzip and for
> content-encoding:
> > > compress it expects data to be compressed using the Unix compress
> tool... (I
> > > think someone reported this already... oh well)
> >
> > Hmm, how does mod_gzip compress it then? In every request I get from IE
> > includes the "accept-encoding: gzip" string, and apache is sending it
> > gzip-compressed back. Do you mean that the mod_gzip is compressing it
> > different then zlib?
> >
> > mart(ijn)
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Zope-Dev maillist  -  Zope-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> >
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>