Prevent resource transformation of gzipped CSS files
When resolved through the `GzipResourceResolver`, CSS files can be
resolved as their pre-gzipped variant, if a ".gz" file is present in the
configured resource locations.
Such resources are gzipped and thus should not be transformed by
`CssLinkResourceTransformer`s, since rewriting those would need to
uncompress/transform/recompress. This would lead to poorer performances
than resolving plain resources and delegating compression to the
container.
This commit checks for `GzippedResource` instances in
`CssLinkResourceTransformer` and avoids processing them.
Issue: SPR-14773
@ -73,7 +73,8 @@ public class CssLinkResourceTransformer extends ResourceTransformerSupport {
@@ -73,7 +73,8 @@ public class CssLinkResourceTransformer extends ResourceTransformerSupport {
@ -76,7 +76,7 @@ public class GzipResourceResolver extends AbstractResourceResolver {
@@ -76,7 +76,7 @@ public class GzipResourceResolver extends AbstractResourceResolver {
@ -70,7 +70,8 @@ public class CssLinkResourceTransformer extends ResourceTransformerSupport {
@@ -70,7 +70,8 @@ public class CssLinkResourceTransformer extends ResourceTransformerSupport {
@ -78,7 +78,7 @@ public class GzipResourceResolver extends AbstractResourceResolver {
@@ -78,7 +78,7 @@ public class GzipResourceResolver extends AbstractResourceResolver {