Created
February 20, 2013 08:15
-
-
Save iamntz/4993865 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json | |
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript | |
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component | |
<FilesMatch "\.(ttf|otf|eot|svg)$" > | |
SetOutputFilter DEFLATE | |
</FilesMatch> | |
</IfModule> | |
FileETag none | |
<IfModule mod_setenvif.c> | |
<IfModule mod_headers.c> | |
BrowserMatch MSIE ie | |
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie | |
</IfModule> | |
</IfModule> | |
<IfModule mod_headers.c> | |
Header append Vary User-Agent | |
</IfModule> | |
AddDefaultCharset utf-8 | |
AddCharset utf-8 .html .css .js .xml .json .rss | |
ServerSignature Off | |
<FilesMatch "\.(ttf|otf|eot|woff|font.css)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> | |
</FilesMatch> | |
# video | |
AddType video/ogg ogg ogv | |
AddType video/mp4 mp4 | |
AddType video/webm webm | |
AddType image/svg+xml svg svgz | |
AddEncoding gzip svgz | |
# webfonts | |
AddType application/vnd.ms-fontobject eot | |
AddType font/truetype ttf | |
AddType font/opentype otf | |
AddType font/woff woff | |
# assorted types | |
AddType image/vnd.microsoft.icon ico | |
AddType image/webp webp | |
AddType text/cache-manifest manifest | |
AddType text/x-component htc | |
AddType application/x-chrome-extension crx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment