一个detail.aspx页面
<%@ OutputCache VaryByParam="ID" Duration="600" %><%     
        Response.Write(DateTime.Now);
%>另一个clearcache.aspx页面
想执行clearcache.aspx?id=xxx&clearCache=true的时候就清除id为xxx标号的detail.aspx页面缓存,如何操作比较好些?

解决方案 »

  1.   

    HttpResponse.RemoveOutputCacheItem(string path);但是并不好用.网上也找不到什么好的资料.我现在在考虑用VaryByCustom来解决.
      

  2.   

    VaryByCustom 的确是好东西 我原来有一个要求。就是更具IP地址来缓存内容。但是在csdn问了一下没人回答。后来自己找msdn 找Google终于用VaryByCustom解决了。:-)HttpResponse.RemoveOutputCacheItem(string path);
    使用有什么问题么??path是相对路径还是绝对url??
      

  3.   

    Response.Cache.SetNoServerCaching();停止缓存
      

  4.   

    http://www.cnblogs.com/Truly/archive/2006/10/12/527206.html