[
https://issues.apache.org/jira/browse/WICKET-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590863#action_12590863
]
Johan Compagner commented on WICKET-1240:
-----------------------------------------
create your own BufferedResponse class:
class GZipBufferedResponse extends BufferedResponse
{
public void close()
{
String result = toString();
if (result.length != 0)
{
getOutputStream().write(compress(result));
}
}
the only problem i could see is that in a subclass of BufferedResponse you cant
really test for if it is a redirect or not.
That is a bit wrong api, needs to be fixed.
> gzip compression for webpages
> -----------------------------
>
> Key: WICKET-1240
> URL: https://issues.apache.org/jira/browse/WICKET-1240
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.3.0-rc2
> Reporter: Artur Wronski
> Fix For: 1.4-M2
>
>
> It would be great if it would be possible to turn on gzip compression for web
> pages not only for resources like it is now.
> Sometimes pages with lots of buttons and lots of ajax can be very heavy.
> It is not possible to add gzip filter by myself because wicket sometimes
> close the connection.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.