以下可缓存资源具有短暂的生命周期.指定以下资源的至少一周的到期时间:
http://pagespeed.googlelabs.com建议我这个为我的网站作为高优先级.我正在使用windows server 2008 r2 netframework 4.0 asp.net IIS 7.5.我该怎么做?
这是你直接看到的URL:http://pagespeed.googlelabs.com/#url=www.monstermmorpg.com&mobile=false&rule=LeverageBrowserCaching
解决方法
您可以从
this article开始,Mads Kristensen也写了一个
interesting
blog post如何在您的网站上压缩,缩小和缓存动态和静态内容.
<configuration>
<location path="showStockPrice.asp">
<system.webserver>
<caching>
<profiles>
<add varybyquerystring="*"location="Any"
duration="00:00:01" policy="CacheForTimePeriod"
extension=".asp">
</profiles>
</caching>
</system.webserver>
</location>
缓存静态内容
<staticContent> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00"/> </staticContent>
