Http://www.cnblogs.com/xtechnet/archive/2011/11/07/2239316.html
Comment out index. aspx
<Param name = "Source" value = "clientbin/xxxxxx. xap"/>
Add the following C #Code:
<%
// 2011.11.07 modification solves xap cache Problems
String Strsourcefile = @" Clientbin/xxxxxx. xap " ;
String Param;
If (System. Diagnostics. Debugger. isattached)
Param = " <Param name = \ "Source \" value = \" " + Strsourcefile + " \ "/> " ;
Else
{
String Xappath = httpcontext. Current. server. mappath ( @"" ) + @" \ " + Strsourcefile;
Datetime xapcreationdate = system. Io. file. getlastwritetime (xappath );
Param = " <Param name = \ "Source \" value = \" " + Strsourcefile + " ? Ignore = "
+ Xapcreationdate. tostring () + " \ "/> " ;
}
Response. Write (PARAM );
%>
When the xap is updated, the last modification time of the xap file is used to determine whether the xap is a newly generated xap, so as to control whether to read the xap in the cache or download the xap on the server.
Refer:Http://codeblog.larsholm.net/2010/02/avoid-incorrect-caching-of-silverlight-xap-file/#comment-20