Add configs for WOFF 2.0 font files (`.woff2`)
Ref: http://www.w3.org/TR/WOFF2/ h5bp/server-configs-apache#32 Close: h5bp/server-configs-nginx#54
This commit is contained in:
parent
b75cbfdafe
commit
f9b58cd883
|
@ -1,5 +1,5 @@
|
|||
# Cross domain webfont access
|
||||
location ~* \.(?:ttf|ttc|otf|eot|woff)$ {
|
||||
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
|
||||
include h5bp/directive-only/cross-domain-insecure.conf;
|
||||
|
||||
# Also, set cache rules for webfonts.
|
||||
|
|
|
@ -36,7 +36,7 @@ location ~* \.(?:css|js)$ {
|
|||
|
||||
# WebFonts
|
||||
# If you are NOT using cross-domain-fonts.conf, uncomment the following directive
|
||||
# location ~* \.(?:ttf|ttc|otf|eot|woff)$ {
|
||||
# location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
|
||||
# expires 1M;
|
||||
# access_log off;
|
||||
# add_header Cache-Control "public";
|
||||
|
|
|
@ -53,6 +53,7 @@ types {
|
|||
|
||||
# Web fonts
|
||||
application/font-woff woff;
|
||||
application/font-woff2 woff2;
|
||||
application/vnd.ms-fontobject eot;
|
||||
application/x-font-ttf ttc ttf;
|
||||
font/opentype otf;
|
||||
|
|
Loading…
Reference in New Issue