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?

Advertisements

2 thoughts on “Enabling gzip HTTP Compression on Glassfish

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s