title: Caching Profiles web.config vs IIS
body: <p>What is the difference between configuring a Caching Profile in Web.Config and configuring it in IIS?</p>
  
  <p>If you have this in Web.Config</p>
  
  <pre><code>&lt;caching&gt;
      &lt;outputCache enableOutputCache="true" /&gt;
      &lt;outputCacheSettings&gt;
          &lt;outputCacheProfiles&gt;
              &lt;add duration="14800" enabled="true" varyByParam="*"
                   name="AssetCacheProfile" /&gt;
          &lt;/outputCacheProfiles&gt;
      &lt;/outputCacheSettings&gt;
  &lt;/caching&gt;
  </code></pre>
  
  <p>And nothing configured in IIS in the Output Caching, will it work?</p>
  
  <p>And what if you add all the extensions I use in Output Caching in IIS, what does that change?</p>
  
  <p>It's a aspx page RetrieveBlob.aspx that uses this Caching Profile:</p>
  
  <pre><code>&lt;%@ OutputCache CacheProfile="AssetCacheProfile" %&gt;
  &lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="RetrieveBlob.aspx.cs"
   Inherits="RetrieveBlob"  %&gt;
  </code></pre>