How to enable website compression with Apache2
Last Updated: 2010-12-31
Allowing Apache to compress the output before it sends it to the client will reduce bandwidth and the load time as well.
I enabled compression across all domains by adding the following to my apache configuration.
# compress css, text, html, js, ....
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
keywords: g-zip, gzip, deflate, compression, apache2, performance, website
No Comments yet .....
Add Your Comment:
Note: All posts require administrator approval. Please allow 24 hours for message approval.