Aggiungere nel web.config, sotto system.web
 
    <caching>
      <outputCacheSettings>
        <outputCacheProfiles>
          <add name="Cache30Seconds" duration="30" varyByParam="none" />
          <add name="Cache300Seconds" duration="300"  varyByParam="none" />
        </outputCacheProfiles>
      </outputCacheSettings>
    </caching>
 
 
Aggiungere in una pagina la direttiva
 
<%@ OutputCache CacheProfile="Cache300Seconds" %>
 
Negli UserControl non si può usare la CacheProfile, quindi ogni UserControl dovrà avere specificata la cache, con duration e varyByParam
 
<%@ OutputCache Duration="600" varyByParam="none" %>