2012-07-22 23:31:54 +02:00
|
|
|
# Cross domain webfont access
|
2013-02-24 21:40:13 +01:00
|
|
|
location ~* \.(?:ttf|ttc|otf|eot|woff|font.css)$ {
|
2012-07-22 23:31:54 +02:00
|
|
|
add_header "Access-Control-Allow-Origin" "*";
|
2012-08-19 18:27:13 +02:00
|
|
|
|
|
|
|
# Also, set cache rules for webfonts.
|
|
|
|
#
|
|
|
|
# See http://wiki.nginx.org/HttpCoreModule#location
|
|
|
|
# And https://github.com/h5bp/server-configs/issues/85
|
|
|
|
# And https://github.com/h5bp/server-configs/issues/86
|
|
|
|
expires 1M;
|
|
|
|
access_log off;
|
|
|
|
add_header Cache-Control "public";
|
2012-07-22 23:31:54 +02:00
|
|
|
}
|