How to do I prevent a Silverlight XAP file being cached by the web browser?
The reason I want to do this is during development I don\'t want to manually clear the br
I added a query parm to the path of the xap file, so that I can manage it through Versioning.
Default.aspx code:
Default.aspx.cs code:
protected string XapID
{
get
{
Version v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
if (System.Diagnostics.Debugger.IsAttached)
Response.Write(string.Format("Build: {0}.{1}.{2}.{3}", v.Major.ToString(), v.Minor.ToString(), v.Build.ToString(), v.Revision.ToString()));
return string.Format("{0}.{1}.{2}.{3}", v.Major.ToString(), v.Minor.ToString(), v.Build.ToString(), v.Revision.ToString()
}
}