Today I updated Font Awesome package to 4.3.0 and noticed that woff2 font was added. That file is linked in CSS so I need to configure nginx to serve woff2 files properly.
Currently I have this block in nginx config for fonts:
location ~* \.(otf|eot|woff|ttf)$ {
types {font/opentype otf;}
types {application/vnd.ms-fontobject eot;}
types {font/truetype ttf;}
types {application/font-woff woff;}
}
What is proper mime type for woff2 fonts?
<IfModule mod_mime.c> AddType font/woff2 woff2
and<IfModule mod_expires.c> ExpiresActive On ExpiresByType font/woff2 "access plus 1 month"
. (Closing tags and newlines omitted.) – Chloe