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

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

Ok I finally understood what you meant. The problem lies in the fact that the 
minified handling is done within PackageResourceReference and not in 
PackageResource. 

I am willing to take this issue into account and correct it for the 
Wicket.next, however, only if a core commiter tell me it is ok to do so (it 
represents quite a lot of work to be honest).

Can someone confirm this issue needs to be handled (or we might complete the 
JavaDoc of JavaScriptPackageResource to tell that automatic lookup of minified 
resource won't be done) ? 
                
> 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