MatTheCat / HtmlCompressorBundle

Symfony2 bundle which allow to minify cacheable HTML and XML responses using htmlcompressor.
MIT License
11 stars 4 forks source link

Option examples #1

Closed amqex closed 11 years ago

amqex commented 11 years ago

Hello,

I installed the bundle but I wasn't able to get the html output compressed. I tried different options from the htmlcompressor documentation. Maybe I'm not using it correctly.

options: { '--type': html  }

Does the bundle name have to be provided? Can you provide an example for compressing html output?

Thanks!

MatTheCat commented 11 years ago

Hi!

In theory you don't have to specifiy any option, are you sure your responses are cacheable? As the compression process is somewhat heavy I avoided to launch it for every request.

I could change this behaviour but to be honest I think the time needed to compress the output make this bundle useless for production. It is my first bundle you see ^^'