添加缓存策略:
location / {
root /var/www/html;
index index.html index.htm;
add_header Cache-Control max-age=300; ---》这个
}
Nginx添加缓存策略
最新推荐文章于 2024-03-24 16:51:39 发布
添加缓存策略:
location / {
root /var/www/html;
index index.html index.htm;
add_header Cache-Control max-age=300; ---》这个
}