我有一个网站的apacheconfiguration中的以下行:
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
网站的一部分生成的CSV可以下载,但在IE浏览器,这行configuration目前在IE中出现以下错误:
Internet Explorer cannot download admin/ from wwww.domain.com Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
这是一个与IE浏览器已知的问题,是否有一个已知的修复? 或者有没有办法只在某些页面上实现caching控制?
如果我注释掉这一行,它在IE中工作正常。
我可以添加这样的东西到需要它的页面的<head>,而不是Apacheconfiguration行吗?
<meta http-equiv="CACHE-CONTROL" content="NO-STORE, NO-CACHE, MUST-REVALIDATE, POST-CHECK=0, PRE-CHECK=0" />
看起来像是导致问题的“no-cache”标题:
你能设置一个Expires头吗?