5 August 2014

Compress site using mod_deflate to reduce bandwidth and loading time, also Google Speed suggests it. You can test your site via whatsmyip.org/http-compression-test. Add this to your .htaccess file, to the bottom.

Source code viewer
  1. <IfModule mod_deflate.c>
  2. AddOutputFilterByType DEFLATE application/javascript
  3. AddOutputFilterByType DEFLATE application/rss+xml
  4. AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  5. AddOutputFilterByType DEFLATE application/x-font
  6. AddOutputFilterByType DEFLATE application/x-font-opentype
  7. AddOutputFilterByType DEFLATE application/x-font-otf
  8. AddOutputFilterByType DEFLATE application/x-font-truetype
  9. AddOutputFilterByType DEFLATE application/x-font-ttf
  10. AddOutputFilterByType DEFLATE application/x-javascript
  11. AddOutputFilterByType DEFLATE application/xhtml+xml
  12. AddOutputFilterByType DEFLATE application/xml
  13. AddOutputFilterByType DEFLATE font/opentype
  14. AddOutputFilterByType DEFLATE font/otf
  15. AddOutputFilterByType DEFLATE font/ttf
  16. AddOutputFilterByType DEFLATE image/svg+xml
  17. AddOutputFilterByType DEFLATE image/x-icon
  18. AddOutputFilterByType DEFLATE text/css
  19. AddOutputFilterByType DEFLATE text/html
  20. AddOutputFilterByType DEFLATE text/javascript
  21. AddOutputFilterByType DEFLATE text/plain
  22. AddOutputFilterByType DEFLATE text/xml
  23. </IfModule>
Programming Language: Apache configuration