web.config中的<caching>节点是什么?

osc*_*tin 2 asp.net caching web-config asp.net-3.5

我们看起来像这样:

    <caching>
        <profiles>
            <add extension=".css" policy="CacheUntilChange" kernelCachePolicy="DontCache" />
            <add extension=".gif" policy="CacheUntilChange" kernelCachePolicy="DontCache" />
            <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="DontCache" />
        </profiles>
    </caching>
Run Code Online (Sandbox Code Playgroud)

我想知道因为我们的生产网站没有这个节点,但我们的本地开发web.config确实如此.

Akr*_*hda 7

该元素允许您为Internet Information Services(IIS)7应用程序启用或禁用页面输出缓存.此元素还允许您配置IIS是否在用户模式,内核模式或两者中缓存页面输出以及您要强加的输出缓存限制(如果有).

该元素还包含一个元素,该元素包含可应用于ASP.NET页面的输出缓存设置的集合.


参考:

http://www.iis.net/ConfigReference/system.webServer/caching

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

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

http://www.asp.net/moving-to-aspnet-20/tutorials/caching