如何利用ASP.net IIS 7.5中的浏览器缓存
发布时间:2020-12-30 18:08:39 所属栏目:asp.Net 来源:互联网
导读:以下可缓存资源具有短暂的生命周期.指定以下资源的至少一周的到期时间: http://pagespeed.googlelabs.com建议我这个为我的网站作为高优先级.我正在使用windows server 2008 r2 netframework 4.0 asp.net IIS 7.5.我该怎么做? 这是你直接看到的URL:http://p
以下可缓存资源具有短暂的生命周期.指定以下资源的至少一周的到期时间: 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> (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 有没有一个原因,cshtml不受欢迎
- asp.net – 在VS Code中指定localhost端口的位置
- asp.net-mvc – 在asp.net mvc 3剃刀中识别html助手的问题
- asp.net-mvc-2 – MVC源代码单例模式
- ASP.NET标签控件 – 不编码HTML
- 介绍几种 ADO.net 中的数据库连接方式
- asp.net – 什么是system.globalization它和本地化有什么区
- 如何处理在MVC视图中应用程序启动和传输和显示错误发生的AS
- asp.net-mvc – MicrosoftMvcValidation.js VS jquery.vali
- asp.net-mvc – 在ClaimsIdentity上,BootstrapContext为nul
推荐文章
站长推荐
热点阅读