# 不区分大小写 location ~* .*\.(gif|jpg|jpeg|png|bmp|eot|otf|ttf|woff|svg)$ { # 设置跨域 add_header Access-Control-Allow-Origin *; # 设置缓存360天 expires 360d; }