2012-11-09 162 views
0

我尝试使用杠杆浏览器缓存asp.net

https://developers.google.com/speed/

它说,充分利用浏览器缓存来检查我的网站的速度。 我试图通过将下面的代码web.config文件

<staticContent> 
<clientCache cacheControlMode="UseExpires" httpExpires="Tue, 19 Jan 2038 03:14:07 GMT" /> 
</staticContent> 

这样做的,我再复查。但它又一次显示出来!

以上代码是否真正解决了问题? 我为我的网站使用IIS 7.5.NET Framework 4.0

回答

0

我不认为这有什么差别,但我得到了它与UTC时间格式的工作:

<staticContent> 
    <clientCache httpExpires="Sun, 26 Oct 2014 00:00:00 UTC" cacheControlMode="UseExpires" /> 
</staticContent>