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

原文地址:https://www.cnblogs.com/zhftyy/p/5145802.html