Caching Profiles web.config vs IIS

Posted by Lieven Cardoen on Stack Overflow See other posts from Stack Overflow or by Lieven Cardoen
Published on 2010-03-23T16:36:02Z Indexed on 2010/03/23 16:43 UTC
Read the original article Hit count: 318

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about iis

Related posts about caching