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

Cedric Gatay commented on WICKET-5250:
--------------------------------------

Hi,
I made a small patch allowing CssResourceReference and 
JavaScriptResourceReference to use the built-in mechanism in 
PackageResourceReference, please ignore the previous message as I melted things 
in my head.

You can find the correct patch at the following url : 
https://github.com/CedricGatay/wicket/compare/WICKET-5250?expand=1 it includes 
basic unit-testing around the bug as it has been described.

Regards,
                
> Minified css/js gets compressed
> -------------------------------
>
>                 Key: WICKET-5250
>                 URL: https://issues.apache.org/jira/browse/WICKET-5250
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.8.0
>            Reporter: Johannes Odland
>
> Given an application with a resource reference to a minified script, i.e. 
> html5.js and html5.min.js.
> When the ResourceRequestHandler responds 
> it will set compress to false, if the resource reference was 
> PackageResourceReference
> but it will not change compression if the resource reference was 
> JavaScriptResourceReference.
> PackageResourceReference handles minified resources more or less correctly 
> (if they are minified, they should not be further compressed), but this 
> behavior is overwritten in its subclasses.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to