Posts

Showing posts with the label Mime

Correct Apache AddType Directives For Font MIME Types

Answer : I realize that this question is old, but for anyone looking for a quick copy/paste for adding font MIME types to their .htaccess: <IfModule mod_mime.c> AddType application/vnd.ms-fontobject .eot AddType application/x-font-opentype .otf AddType image/svg+xml .svg AddType application/x-font-ttf .ttf AddType application/font-woff .woff AddType application/font-woff2 .woff2 </IfModule> I just did some research on IANA official list. This appears to be the current state of the play as at May 2013: These three are official and assigned by IANA: svg as "image/svg+xml" woff as "application/font-woff" eot as "application/vnd.ms-fontobject" These are not not official/assigned, and so must use the 'x-' syntax: ttf as "application/x-font-ttf" otf as "application/x-font-opentype" It appears that the 'font' type does not exist...