Improve static files config

This commit is contained in:
Ashley Rich 2020-04-25 10:22:51 +01:00
parent b9641c487e
commit 95c7a53827

View File

@ -31,10 +31,12 @@ location ~* \.(?:css|js)$ {
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
expires 1y;
access_log off;
add_header Access-Control-Allow-Origin *;
}
# Don't record access/error logs for robots.txt.
location = /robots.txt {
try_files $uri $uri/ /index.php?$args;
access_log off;
log_not_found off;
}