开发者

Caching Profiles web.config vs IIS

What is the difference between configuring a Caching Profile in Web.Config and configuring it in IIS?

If you have this in Web.Config

<caching>
    <outputCache enableOutputCache="true" />
    <outputCacheSettings&g开发者_如何学Pythont;
        <outputCacheProfiles>
            <add duration="14800" enabled="true" varyByParam="*"
                 name="AssetCacheProfile" />
        </outputCacheProfiles>
    </outputCacheSettings>
</caching>

And nothing configured in IIS in the Output Caching, will it work?

And what if you add all the extensions I use in Output Caching in IIS, what does that change?

It's a aspx page RetrieveBlob.aspx that uses this Caching Profile:

<%@ OutputCache CacheProfile="AssetCacheProfile" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RetrieveBlob.aspx.cs"
 Inherits="RetrieveBlob"  %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜