cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Summary: serializer sending gzip compressed html
Date Sun, 07 Jul 2002 14:58:58 GMT
John Morrison wrote:
> 
> I think this would be interesting :) +0

Yes, definately... even if I still believe it should be the "transparent
proxy in front of your web server"'s job to do this so that you get
maximum benefit.

> > From: Jens Lorenz [mailto:jens.lorenz@interface-projects.de]
> > From: "Stefano Mazzocchi" <stefano@apache.org>
> > > > Well, IMHO there are still some cases where a GZIPSerializer might
> > > > be useful. But thanks to you Luca and Stefano for opening my eyes
> > > > for the world outside Cocoon.
> > >
> > > You are welcome.
> > >
> > > Anyway, I believe that a HTML-gzipping-serializer is a bad idea because
> > > is mixes concerns: GZIP compression is a property of the transport layer
> > > and should be transparent.
> > >
> > > As for lack of caching: I also think that Cocoon should stop caching its
> > > generated resources and just try to be more proxy friendly. But that is
> > > another story.
> >
> > To summarize this issue ... I tested the CompressionFilter coming as
> > example with Tomcat and it works just fine. No need to hack into Cocoon
> > and doesn't serve incomplete gzip files.
> > Also it automatically detects accept-encoding of the browser and only
> > compresses, if compression is supported by the http client.
> >
> > For production environments, it's probably a good idea to extend this
> > example to compress only html and text files. No much sense in compressing
> > gif and jpg files, besides wasting cpu cycles ...
> >
> > If anyone is interested, I would prepare a patch to the CompressionFilter
> > coming with tomcat and to cocoons web.xml, with the filter commented out,
> > so that only these comments need to be removed, in order to get compressed
> > output from cocoon/tomcat.
> >
> >
> > Jens
> >
> > --
> >
> > jens.lorenz at interface-projects dot de
> >
> > interface:projects GmbH                             \\|//
> > Tolkewitzer Strasse 49                              (o o)
> > 01277 Dresden                               ~~~~oOOo~(_)~oOOo~~~~
> > Germany
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org


-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message