我的 nginx 配置文件在我的 http 块中有以下设置:
gzip on;
server_tokens off;
add_header X-Frame-Options Deny;
expires 1s;
在使用 Chrome 的开发控制台 (F12) 时,我的回复中实际上并没有考虑到它们。
我的响应标题是:
Connection:keep-alive
Date:Thu, 03 Oct 2013 15:36:25 GMT
ETag:"524d8e2a-55"
Last-Modified:Thu, 03 Oct 2013 15:32:58 GMT
Server:nginx/1.4.2
我在 Windows 上,并运行了“nginx -s reload”命令。