现在用的是:- location ~* ^.+\.(gif|jpg|jpeg|png|bmp|swf|ico)$

  • {
  • access_log off;
  • expires 30d;
  • }
  • - location ~* ^.+\.(css|js)$
  • {
  • access_log off;
  • expires 15d;
  • }复制代码这样的形式,可是浏览器读到的文件缓存有效期都是只有一天,或者是缓存到期时间是过去的时间,是哪里设置错了么?还是服务器也要做什么设置?

服务器配置是按照张宴教程做的LNMP