server-configs-nginx/h5bp/location/cross-domain-fonts.conf

13 lines
403 B
Nginx Configuration File
Raw Normal View History

# Cross domain webfont access
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
include h5bp/directive-only/cross-domain-insecure.conf;
# 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
# And https://github.com/h5bp/server-configs/issues/85
# And https://github.com/h5bp/server-configs/issues/86
access_log off;
expires 1M;
}