开发者

Caching Profiles web.config vs IIS

开发者 https://www.devze.com 2022-12-24 02:20 出处:网络
What is the difference between configuring a Caching Profile in Web.Config and configuring it in 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

精彩评论

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