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小时。 服务端, 客户端