.htaccess: (YUI) Disable Etag, Compress Fonts, Compress HTML/CSS/JS

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

Etag Removal: http://developer.yahoo.com/performance/rules.html#etags
Font Compression: http://www.phpied.com/gzip-your-font-face-files/
Compression: http://developer.yahoo.com/performance/rules.html#gzip

Copy this code and paste it in your HTML
  1. # Remove ETags
  2. Header unset ETag
  3. FileETag None
  5. #FontCompression
  6. AddType application/vnd.ms-fontobject .eot
  7. AddType application/octet-stream .ttf .otf .woff
  8. SetOutputFilter DEFLATE
  10. #General Compression
  11. AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/json
  12. Header append Vary Accept-Encoding

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.