码迷,mamicode.com
首页 > Web开发 > 详细

.net 页面输出缓存设置

时间:2016-01-20 17:10:04      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:

web.config中的配置


<configuragion>

  <system.web>

    <caching>

      <outputCacheSettings>

        <outputCacheProfiles>

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

        </outputCacheProfiles>

      </outputCacheSettins>

    </caching>

  <system.web>

</configuration>

 

 

页面开头处的设置

<%@ OutputCache   CacheProfile="Cache90Seconds" %>

 

.net 页面输出缓存设置

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!