我在做网页中有使用到flash,但每次对flash进行修改后并重新发布后,asp.net中打开的flash.html文件依然是以前的flash效果。我不清楚这是不是缓存的原因,如果我想清理缓存,应该怎么做呢?谢谢大家。

解决方案 »

  1.   

    Response.Header.SetNocache
    好像是这样的.
      

  2.   

    flash没搞过,不过图片更新的话,可以在图片的url后面加一随机数。src="a.jpg?rand="+Math.random()
      

  3.   

    <%
        HttpContext.Current.Response.Buffer = true;
        HttpContext.Current.Response.Expires = 0;
        HttpContext.Current.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
        HttpContext.Current.Response.AddHeader("pragma", "no-cache");
        HttpContext.Current.Response.AddHeader("cache-control", "private");
        HttpContext.Current.Response.CacheControl = "no-cache";
    %> 
      

  4.   

    把你的标题Google一下,马上有答案,何必来这里等那么长时间。