如何缓存asp.net网站获得更好的性能 [英] How to cache asp.net web site for better performance

查看:145
本文介绍了如何缓存asp.net网站获得更好的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名网页设计师,通常设计往往并不需要更新企业网站。所以,我希望缓存输出的一天。我怎样才能做到这一点?

I am a web designer and usually design corporate web sites which often does not require update. So I want to cache the output for one day. How can I do this?

同时,任何在较慢的服务器获得更好的性能建议,asp.net都可以接受。

Also any suggestions for better performance for asp.net on slow servers are accepted.

推荐答案

我建议你遵循这个规则,以提高性能一般

I'd recommend you to follow this rules in order to improve performance in general

http://developer.yahoo.com/performance/rules.html

如果您安装了YSlow的Firebug的,将验证所有这些规则给你。

If you install the YSlow for firebug it will validate all these rules for you.

和关于向特别是高速缓存,我建议你阅读本教程。 Cache是​​一个非常广泛的话题,这是不容易在10日线说明一切: - )

And regarding to cache in particular I recommend you to read this tutorial. Cache is a very extensive topic and it's not easy to explain everything in 10 lines :-)

http://www.mnot.net/cache_docs/#CONTROL

特别谈到了ASP NET页面输出缓存指令,它的使用非常简单。在这里,你有参考

Specifically talking about the output cache directive for ASP NET pages, it's quite simple to use. Here you have the reference

http://msdn.microsoft.com/en-us/library/ hdxfb6cy.aspx

但请考虑使用缓存的页面,也为其他资源如CSS,JS和图像是非常重要的。

But please take into account that is important to use the cache for pages and also for other resources as css, JS and images.

这篇关于如何缓存asp.net网站获得更好的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆