compressing html, css, xml, js


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # Compress output
  2. AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript
  3. BrowserMatch ^Mozilla/4 gzip-only-text/html
  4. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  5. BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.