How can I set Cache-Control globally in NGINX

后端 未结 0 1219
清酒与你
清酒与你 2020-12-03 23:06

I want to setup a general cache-control for all NGINX-Sites. Here is an example of it:

location ~* \\.(?:ico|gif|jpe?g|png|svg?z)$ {
        expires 1y;
              


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题