其实就是备份一下配置方法,防止我以后忘,嘿嘿
#禁用缓存
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$
{
add_header Cache-Control no-store,no-cache;
}
#允许跨域
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers *;
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";