2012-07-22 23:31:54 +02:00
|
|
|
# Cross domain webfont access
|
2014-09-03 14:28:54 +02:00
|
|
|
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
|
2015-12-04 15:25:31 +01:00
|
|
|
include h5bp/directive-only/cross-domain-insecure.conf;
|
2012-08-19 18:27:13 +02:00
|
|
|
|
2015-12-04 15:25:31 +01:00
|
|
|
# Also, set cache rules for webfonts.
|
|
|
|
#
|
2018-11-23 14:45:12 +01:00
|
|
|
# See https://nginx.org/en/docs/http/ngx_http_core_module.html#location
|
2015-12-04 15:25:31 +01:00
|
|
|
# And https://github.com/h5bp/server-configs/issues/85
|
|
|
|
# And https://github.com/h5bp/server-configs/issues/86
|
|
|
|
access_log off;
|
2018-03-06 20:53:04 +01:00
|
|
|
expires 1M;
|
2012-07-22 23:31:54 +02:00
|
|
|
}
|