1、IIS6.0的Kernel Caching

2、Gzip,IIS6.0的xml配置文件中修改。
Edit \Windows\System32\inetsrv\MetaBase.xml with your favorite text editor. Search for "IIsCompressionScheme". There will be two XML elements, one for deflate and one for gzip. Both elements have properties called HcFileExtensions and HcScriptFileExtensions. These contain a space-delimited list of file extension for compressible content. At a bare minimum, you'll need to add aspx to the HcScriptFileExtensions list. Note that if the properties are left blank, then all content, regardless of file extension, will be compressed.
在IIS6中动态压缩和kernel cashing是互斥的

3、Cache
可以要求ASP.NET为每个可能的参数组合缓存页面的一个版本。为此,可把VaryByParam设为*

VaryByControl 属性设置为 MyTextBox,则对于 MyTextBox 控件接收到的每个值,都将会有一个用户控件输出版本存储在缓存中。

如果在同一应用程序的多个页中使用了相同的用户控件,则可以通过以下方法来节省内存:将用户控件 @ OutputCache 指令的 Shared 属性设置为 true,或将 PartialCachingAttribute.Shared 属性设置为 true。这意味着每个页都将访问用户控件输出的同一实例。对于经常使用和频繁缓存的用户控件,使用 Shared 属性可以节省大量的内存。
Posted on 2006-07-09 15:46  arts  阅读(217)  评论(0编辑  收藏  举报