Enabling gzip HTTP Compression on Glassfish

I followed this blog to configure my instance of glassfish to enable gzip compression for HTTP traffic. Here is my version of the configuration:

<property name="compression" value="on"/>
<property name="compressableMimeType" value="text/html,text/xml,text/plain,image/gif,image/jpeg,image/png,text/css,text/javascript,application/json"/>           

After restarted the sever, I noticed that not all files were compressed. Some css files were compressed while some other css files didn’t. I wonder why?


2 thoughts on “Enabling gzip HTTP Compression on Glassfish

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s