<system.web>
    <caching>
      <outputCacheSettings>
        <outputCacheProfiles>
          <add name="pageCache" duration="60" varyByParam="none" enabled ="true"/>
        </outputCacheProfiles>
      </outputCacheSettings>
    </caching>
</system.web>
上面的意思为过期时间为60秒,不根据页面参数缓存。
页面中调用此设置如下。
<%@ OutputCache CacheProfile="pageCache" %>
暂时没找到更简单的设置方法

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-01-25
  • 2022-12-23
  • 2021-11-09
  • 2022-01-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-02-23
  • 2022-02-11
  • 2022-01-07
相关资源
相似解决方案