I am using silverlight 4.0 for my application and my client requirement to delete the xap file at client side after user logout.
Answer: 1
saurabh jain
I am using silverlight 4.0 for my application and my client requirement to delete the xap file at client side after user logout.
Either you can't clear the browser cache nor the xap file, the other simple way is to tell the browser not to cache our xap or any file from your application with the help of meta data, i hope this will help you.
Add this meta tag in html or aspx page.
<meta http-equiv='cache-control' content='no-cache'> <meta http-equiv='expires' content='0'> <meta http-equiv='pragma' content='no-cache'>
<HEAD> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> </HEAD>
Answer: 2
I think that solution assumes that the browser honors that metadata. As I recall from some testing a long time ago, some browser I was using did NOT honor it. Don't know, but if you need to be positive the file is removed then I'm not sure the metadata will get the job done.
Answer: 3
I'd be asking what business problem is being solved. It seems like an extermely pointless exercise. If your client is worried about the xap being stolen then deleting the cached file does almost nothing to prevent that (either copy the file while the application is being run or just do a Get of the xap file). If they are worried about the disk space being used then they probably should implement some form of automatic cleanup of the browser cache folders as there is going to be a lot of other stuff in there.
Or maybe they have bought a high bandwidth network connection and want to make sure they use as much of it as possible, in which case this is a good idea.
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog