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