能从客户端获取,就不要请求服务端

查看 10|回复 0
作者:wox   
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小时。

服务端, 客户端

您需要登录后才可以回帖 登录 | 立即注册

返回顶部