A platform for community discussion. Free, open, simple.
nginx sample config: also add A-C-A-O header to font files in uploads or plugins path
Michael Brownbec3f124dd63
diff --git a/config/nginx.sample.conf b/config/nginx.sample.confindex 2cbf658369a..a1f0551589f 100644--- a/config/nginx.sample.conf+++ b/config/nginx.sample.conf@@ -91,7 +91,7 @@ server {# auth_basic on;# auth_basic_user_file /etc/nginx/htpasswd;- location ~* assets/.*\.(eot|ttf|woff|woff2|ico)$ {+ location ~* (assets|plugins|uploads)/.*\.(eot|ttf|woff|woff2|ico)$ {expires 1y;add_header Cache-Control public,immutable;add_header Access-Control-Allow-Origin *;