Add proper mime types for web fonts

Aug 21, 2013 11:00 · 57 words · 1 minute read htaccess

In case you’re using web fonts and notice Chrome warning you with something along Resource interpreted as Font but transferred with MIME type application/octet-stream: ".../Content/Fonts/iconFont.ttf". you need to add the following to your .htaccess file:

# transfer fonts as proper mime types
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff

Found on StackOverflow