[ 
https://issues.apache.org/jira/browse/WICKET-5392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806052#comment-13806052
 ] 

Sven Meier commented on WICKET-5392:
------------------------------------

Yes, it's possible to subclass settings. But currently all their properties 
have setter/getter pairs, so I don't think it's a good idea to introduce that 
new usage just for this issue.

How about introducing
- IResourceStrategy (similar to IResourceCachingStrategy)
- IResourceStrategy#decorateHeaders(AbstractResource, 
AbstractResource.ResourceResponse)
- DefaultResourceStrategy calls response.flush() in decorateHeaders()

Perhaps we should just remove the I*Settings interfaces in 7.x, so we make it 
easier to add new settings in the future.

> Responses for package resources cannot be compressed
> ----------------------------------------------------
>
>                 Key: WICKET-5392
>                 URL: https://issues.apache.org/jira/browse/WICKET-5392
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.11.0
>            Reporter: Martin Grigorov
>         Attachments: WICKET-5392.patch, WICKET-5392.patch
>
>
> Applying Jetty's GZipFilter in web.xml works only for the page content but 
> doesn't for any AbstractResource.
> The problem is that 
> org.apache.wicket.request.resource.AbstractResource#flushResponseAfterHeaders 
> flushes the headers and GZipFilter cannot do anything after this.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to