能从客户端获取,就不要请求服务端
2026/01/31 11:17:50
location ~* \.(html|htm|shtml)$ {
expires 1h;
add_header Cache-Control "public, max-age=3600, s-maxage=3600" always;
etag on;
access_log off;
log_not_found off;
}
浏览器缓存html页面1小时。
expires 1h;
add_header Cache-Control "public, max-age=3600, s-maxage=3600" always;
etag on;
access_log off;
log_not_found off;
}
浏览器缓存html页面1小时。