in MyApplication.java:

@Override
        public WebResponse newWebResponse(final HttpServletResponse
httpResponse) {
                return (getRequestCycleSettings().getBufferResponse() 
                                ? new 
BufferedCompressingWebResponse(httpResponse) 
                                : new CompressingWebResponse(httpResponse));
        }

These CompressingWebResponses are wrappers of regular
(Buffered)WebResponse + gzip compression.


On Thu, 2008-04-24 at 14:07 +0200, lars vonk wrote:
> Isn't this also something you could let an Apache Webserver do (if you put
> that in front of your Appserver)? Or maybe Appserver can also do this
> out-of-the-box?
> 
> On Thu, Apr 24, 2008 at 1:56 PM, Stefan Simik <[EMAIL PROTECTED]>
> wrote:
> 
> >
> > I thought about it, and I have 2 ideas:
> >
> >
> > 1. IDEA
> > ----------------------------------------
> >  a) totally disable gzip in wicket --
> > getResourceSettings().setDisableGZipCompression(true);
> >  b) use Gzip filter BEFORE wicket-filter. This Gzip filter will compress
> > all the communication -
> >      HTML, resources .... . Images and some mime-types should be omitted.
> >
> >
> >
> > 2. IDEA
> > -----------------------------------------
> >  add gzipping funcionality to wicket by wrapping the servlet response.
> > this
> > wrapper will detect
> >  if there is a "text/html" mime-type, and only these mime-type will
> > compress.
> >  So we add new compressing functionality pages (html)  to existing
> > functionaliyt of compressing resources.
> >
> >
> > Whad do you think about it a what would you prefer ?
> >
> > --
> > View this message in context:
> > http://www.nabble.com/Gzipping-of-pages-%28HTML-output%2C-not-only-resources%29-tp16849900p16850197.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to