Skip to content

Commit

Permalink
Add configs for WOFF 2.0 font files (.woff2)
Browse files Browse the repository at this point in the history
  • Loading branch information
matylla authored and alrra committed Sep 3, 2014
1 parent b75cbfd commit f9b58cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion h5bp/location/cross-domain-fonts.conf
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion h5bp/location/expires.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions mime.types
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f9b58cd

Please sign in to comment.