首页 > Web开发 > 详细

.net 页面输出缓存设置

时间:2016-01-20 17:07:02      阅读:182      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!