1.修改nginx配置文件
expires 30d;
2.并修改html的头部内容
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-reva lidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
nginx 和html缓存
猜你喜欢
转载自opelok.iteye.com/blog/2036872
今日推荐
周排行