标头中的双缓存控制行


Double Cache-control line in headers

我已经在nginx:中设置了下一行

add_header Cache-Control "max-age=259200, public";

但我的响应中的标题看起来像:

Cache-Control:max-age=259200, public
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/html
Date:Wed, 24 Sep 2014 10:21:32 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Pragma:no-cache
Server:nginx/1.1.19
Transfer-Encoding:chunked
X-Powered-By:PHP/5.3.10-1ubuntu3

我已经检查过了,没有从服务器端脚本(PHP)发送其他头。我该如何解决这个问题。。。?

更新:我发现这只是在PHP生成的响应。。。

我解决了在session_start();之前添加下一行session_cache_limiter(false);的问题。