How to enable either Gzip or Deflate compression via .htaccess and which one is best these days?
Code examples needed.
How to enable either Gzip or Deflate compression via .htaccess
.htaccessapache-2.2gzipmod-deflate
Related Topic
- Zlib Compression and Deflate compression. how to use correctly in htaccess
- I am trying gzip compression for the javascripts and css file but for css it is not working
- How to disable gzip in apache on Ubuntu 10.10
- How to disable gzip compression for particular virtual host apache
- Ubuntu – Apache gzip compression
Best Answer
HTML5 Boilerplate (http://html5boilerplate.com) offers what seems to be the best and most effective solution setting along with plenty of others like caching, mime types etc. Highly recommended.
EDIT: Since this question and answer keep getting upvoted after couple of years I'm putting H5BP server configs link for more complete optimization.
EDIT: fixed link to https://github.com/h5bp/server-configs-apache