You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Artur W." <a_...@gazeta.pl> on 2007/11/30 15:51:04 UTC

Gzip filter and resource problem

Hi!

I added Gzip Filter because my pages are really huge ;)

I don't know if it is a firefox or Wicket (1.3rc1) bug but the resources
are compressed and firefox don't uncompressed it.

The problem is for example with:
resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js

The pages are decompressed correctly!


Any ideas?


Thanks,
Artur

-- 
View this message in context: http://www.nabble.com/Gzip-filter-and-resource-problem-tf4914410.html#a14067683
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Gzip filter and resource problem

Posted by Matej Knopp <ma...@gmail.com>.
use httpservletresponsewrapper and intercept setHeader.

-Matej

On Dec 1, 2007 10:47 PM, Artur W. <a_...@gazeta.pl> wrote:
>
>
>
> Matej Knopp-2 wrote:
> >
> > Check the response headers.
> >
>
> Sorry for the stupid question but how can i do that?
>
> There is no getHeader method in the HttpServletResponse.
>
>
> Thanks,
> Artur
>
> --
> View this message in context: http://www.nabble.com/Gzip-filter-and-resource-problem-tf4914410.html#a14109779
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Gzip filter and resource problem

Posted by "Artur W." <a_...@gazeta.pl>.


Matej Knopp-2 wrote:
> 
> Check the response headers.
> 

Sorry for the stupid question but how can i do that?

There is no getHeader method in the HttpServletResponse.


Thanks,
Artur

-- 
View this message in context: http://www.nabble.com/Gzip-filter-and-resource-problem-tf4914410.html#a14109779
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Gzip filter and resource problem

Posted by Matej Knopp <ma...@gmail.com>.
Check the response headers.

-Matej

On Dec 1, 2007 12:08 PM, Artur W. <a_...@gazeta.pl> wrote:
>
> Hi!
>
>
> Matej Knopp-2 wrote:
> >
> > Yes. Your filter should check if the resource is already compressed.
> > Wicket compress javascripts and css files already. Your filter
> > probably compresses it again.
> >
> >
> You are right! But how can I check it?
>
> I thought that better idea than compress it be myself is to force wicket to
> compress everything not only resources? Is is possible?
>
>
> Thanks,
> Artur
>
> --
> View this message in context: http://www.nabble.com/Gzip-filter-and-resource-problem-tf4914410.html#a14104145
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Gzip filter and resource problem

Posted by "Artur W." <a_...@gazeta.pl>.
Hi!


Matej Knopp-2 wrote:
> 
> Yes. Your filter should check if the resource is already compressed.
> Wicket compress javascripts and css files already. Your filter
> probably compresses it again.
> 
> 
You are right! But how can I check it?

I thought that better idea than compress it be myself is to force wicket to
compress everything not only resources? Is is possible?


Thanks,
Artur

-- 
View this message in context: http://www.nabble.com/Gzip-filter-and-resource-problem-tf4914410.html#a14104145
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Gzip filter and resource problem

Posted by Matej Knopp <ma...@gmail.com>.
Yes. Your filter should check if the resource is already compressed.
Wicket compress javascripts and css files already. Your filter
probably compresses it again.

-Matej

On Nov 30, 2007 3:51 PM, Artur W. <a_...@gazeta.pl> wrote:
>
> Hi!
>
> I added Gzip Filter because my pages are really huge ;)
>
> I don't know if it is a firefox or Wicket (1.3rc1) bug but the resources
> are compressed and firefox don't uncompressed it.
>
> The problem is for example with:
> resources/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal.js
>
> The pages are decompressed correctly!
>
>
> Any ideas?
>
>
> Thanks,
> Artur
>
> --
> View this message in context: http://www.nabble.com/Gzip-filter-and-resource-problem-tf4914410.html#a14067683
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org