.net 页面输出缓存设置

web.config中的配置


<configuragion>

  <system.web>

    <caching>

      <outputCacheSettings>

        <outputCacheProfiles>

          <add name="Cache90Seconds"  duration="90"  varyByParam="none"/>

        </outputCacheProfiles>

      </outputCacheSettins>

    </caching>

  <system.web>

</configuration>

 

 

页面开头处的设置

<%@ OutputCache   CacheProfile="Cache90Seconds" %>

 

posted @ 2016-01-20 16:56  zhftyy  阅读(209)  评论(0)    收藏  举报