【问题标题】:What is the <caching> node in the web.config?web.config 中的 <caching> 节点是什么?
【发布时间】:2011-05-11 19:57:52
【问题描述】:

我们的看起来像这样:

    <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>

我想知道,因为我们的生产网站没有这个节点,但我们本地的 dev web.config 有。

【问题讨论】:

    标签: asp.net caching web-config asp.net-3.5


    【解决方案1】:

    该元素允许您启用或禁用 Internet 信息服务 (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

    【讨论】:

      【解决方案2】:

      对我来说应该是相反的,你想在生产中缓存而不一定在开发中。

      The details for caching.

      【讨论】:

        猜你喜欢
        • 2010-10-06
        • 2011-07-05
        • 1970-01-01
        • 2014-09-18
        • 2015-04-29
        • 1970-01-01
        • 1970-01-01
        • 2016-02-29
        相关资源
        最近更新 更多