Virtual Brain Online Logo

Bookmark: Root \ Apache \ How to enable website compression with Apache2

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.

Name:
E-Mail:
Title
Plain text only, less then 65 000 characters.

How many full bottles of water do you have when you drink one of your two bottles of water?

Please answer the question above and type the answer into the text box below.