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

Johannes Odland commented on WICKET-5250:
-----------------------------------------

In PackageResourceReference#getResource() there is a check that sets compress 
to false on the resource if a minified name exists (Line 132-136).

This method is overwritten by JavaScriptResourceReference (and 
CssResourceReference). Neither of them checks if the resource is minified.

                
> 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