在server中添加以下配置,设置文件缓存时间为30天!
location ~.*\.(swf|jpg|gif|png|jpep|mp3|zip|map)$ { expires 30d; access_log /data/nginx_logs/lihuipeng.blog.51cto.com.log; } |
转载于:https://blog.51cto.com/lihuipeng/844930
在server中添加以下配置,设置文件缓存时间为30天!
location ~.*\.(swf|jpg|gif|png|jpep|mp3|zip|map)$ { expires 30d; access_log /data/nginx_logs/lihuipeng.blog.51cto.com.log; } |
转载于:https://blog.51cto.com/lihuipeng/844930