20167 月4
Nginx:配置静态资源304缓存
location ~ \.(jpg|png|jpeg|gif)$ { expires 30d; root /data/www/wizzer.cn/; } location ~ \.(js|css)$ { expires 2h; root /data/www/wizzer.cn/; }
本文地址:https://wizzer.cn/archives/3273 , 转载请保留.
location ~ \.(jpg|png|jpeg|gif)$ { expires 30d; root /data/www/wizzer.cn/; } location ~ \.(js|css)$ { expires 2h; root /data/www/wizzer.cn/; }
本文地址:https://wizzer.cn/archives/3273 , 转载请保留.
不错,有用!!!