@Override
protected byte[] processResponse(final Attributes attributes, final byte[] bytes)
{
final byte[] processedResponse = super.processResponse(attributes, bytes);
ICssCompressor compressor = Application.get().getResourceSettings().getCssCompressor();
if (compressor != null)
{
try
{
String nonCompressed = new String(processedResponse, "UTF-8");
return compressor.compress(nonCompressed).getBytes();
}
catch (Exception e)
{
log.error("Error while filtering content", e);
return processedResponse;