在nginx的配置文件中加上

 location ~ \.(jpg|png|jpeg|bmp|gif|swf|css)$
        {
            access_log off;
            expires 30d;
            root /www/htdocs/market;
            break;
        }

 

相关文章:

  • 2021-12-09
  • 2022-02-26
  • 2021-05-27
  • 2021-05-29
  • 2021-09-19
  • 2021-09-21
猜你喜欢
  • 2021-08-25
  • 2021-10-28
  • 2021-04-01
  • 2021-08-29
  • 2022-01-15
  • 2021-06-24
  • 2021-08-11
相关资源
相似解决方案