WICKET-5251

We now correctly detect if the resource already ends with .min to avoid further unnecessary compression.