我刚刚完成了一个我设计的网站并将其提交给谷歌见解
http://developers.google.com/speed/pagespeed/insights/
进行绩效评估,这就是我得到的结果.
它说,我需要在HTTP标头中设置到期日期或最大年龄,但我不知道如何设置除cookie /会话之外的任何其他日期,所以我不知道这意味着什么或怎么做.
非常感谢任何帮助
我试图通过设置web.config文件让YSlow在"Add Expires header"部分给我一个A.
我一直在环顾四周,这就是我根据那里的东西放入的东西:
<staticContent>
<clientCache httpExpires="15.00:00:00" cacheControlMode="UseExpires"/>
</staticContent>
</system.webServer>
Run Code Online (Sandbox Code Playgroud)
这就是我在Firebug中看到的:
Response Headers
HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Sun, 28 Aug 2011 13:54:50 GMT
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: image/jpeg
Content-Length: 24255
Connection: Close
Request Headersview source
Host localhost:50715
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0
Accept image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip, deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection keep-alive
Referer http://localhost:50715/MySite/SiteHome.html
Pragma no-cache
Cache-Control no-cache
Run Code Online (Sandbox Code Playgroud)
然而,当我在Firefox中看到它时,即使在Crtl-F5之后,Yslow仍在给出F值
我错过了什么?
谢谢.