<%@ OutputCache Duration="120" VaryByParam="none" %>
用这个需要注意什么啊!怎么我添加折断代码 就会报错呢

解决方案 »

  1.   

    <%@ OutputCache Duration="" VaryByParam="" VaryByControl="" VaryByHeader="" VaryByCustom="" CacheProfile="" Location="" %>
    Duration:设置缓存到期时间,单位:秒。
    VaryByParam:可用来使缓存输出因查询字符串而异,多个查询字符用分号隔开。
    VaryByControl:可用来使缓存输出因控制值而异。
    VaryByHeader:可用来使缓存输出因请求的 HTTP 标头而异。
    VaryByCustom:可用来使缓存输出因浏览器类型或您定义的自定义字符串而异。
    CacheProfile:结合配置文件使用。
    Location:设置页的可缓存性,值有Any,Client,Downstream,None,Server,ServerAndClient。