## 文件緩存
>[info] #### 設置靜態資源緩存
~~~
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
expires 30d;
access_log off;
}
~~~
>[info] #### 取消nginx對靜態資源緩存
~~~
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
add_header Cache-Control no-store;
access_log off;
}
~~~