摘要:
expires缓存 对于网站的图片,尤其是新闻站, 图片一旦发布, 改动的可能是非常小的.我们希望 能否在用户访问一次后, 图片缓存在用户的浏览器端,且时间比较长的缓存。可以, 用到 nginx的expires设置 。nginx中设置过期时间,非常简单。在location或if段里,来写。 设置格式 阅读全文
posted @ 2018-05-19 17:35
孙龙-程序员
阅读(387)
评论(0)
推荐(0)
摘要:
server { listen 80; server_name 116.62.103.228 jeson.imooc.com; sendfile on; #charset koi8-r; access_log /var/log/nginx/log/static_access.log main; locatio... 阅读全文
posted @ 2018-05-19 17:19
孙龙-程序员
阅读(86)
评论(0)
推荐(0)
浙公网安备 33010602011771号