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

14 lines
432 B
Plaintext
Raw Normal View History

# Cross domain webfont access
2013-10-04 20:32:45 +02:00
location ~* \.(?:ttf|ttc|otf|eot|woff)$ {
include h5bp/directive-only/cross-domain-insecure.conf;
# 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";
}