nginx sample config: also add A-C-A-O header to font files in uploads or plugins path
This commit is contained in:
parent
4f946319b4
commit
bec3f124dd
|
@ -91,7 +91,7 @@ server {
|
||||||
# auth_basic on;
|
# auth_basic on;
|
||||||
# auth_basic_user_file /etc/nginx/htpasswd;
|
# 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;
|
expires 1y;
|
||||||
add_header Cache-Control public,immutable;
|
add_header Cache-Control public,immutable;
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
|
Loading…
Reference in New Issue