How do you force Firefox to not cache or re-download a Silverlight XAP file?

后端 未结 17 724
渐次进展
渐次进展 2020-11-29 02:07

When working with Silverlight, I\'ve noticed that Firefox will cache the XAP file, so if I do an update, a user may be stuck using an outdated version. Is there a way to fo

17条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 02:23

    I use this solution

    
    <%––––%>
    <%
    string orgSourceValue = @"ClientBin/SilverlightApp.xap";
    string param;
    if (System.Diagnostics.Debugger.IsAttached)
    param = "";
    else
    {
    string xappath = HttpContext.Current.Server.MapPath(@"") + @"\" + orgSourceValue;
    DateTime xapCreationDate = System.IO.File.GetLastWriteTime(xappath);
    param = "";
    }
    Response.Write(param);
    %>
    
        

    提交回复
    热议问题