Skip to content

Instantly share code, notes, and snippets.

@mrkkr
Created February 5, 2018 15:06
Show Gist options
  • Save mrkkr/b3b2daacfa50d83139673ec39fb98e83 to your computer and use it in GitHub Desktop.
Save mrkkr/b3b2daacfa50d83139673ec39fb98e83 to your computer and use it in GitHub Desktop.
gzip deflate fonts #htacess
<IfModule mod_deflate.c>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment