Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Xap Re-downloaded when run through Windows Forms' WebBrowser?
3 replies. Latest Post by DarekD on July 7, 2009.
(0)
Illuminaty
Member
52 points
52 Posts
07-06-2009 1:43 PM |
We have a silverlight application that is loaded as an homepage of a Windows Forms Application's WebBrowser control.
It seems that the silverlight application is re-downloaded many times per day and not cached on the computer.
This has some major impacts on our traffic due to the hundreds of users we have (though in Silverlight 3 the Xap will be much smaller).
The problem doesn't occur when I load the xap through normal web browser.
Can anyone confirm this problem? What can be done to cache the xap for the WebBrowser?
Thanks.
DarekD
390 points
97 Posts
07-07-2009 7:18 AM |
I don't believe the Browser control has any type of caching mechanism at this point, which kind of makes sense (why make it as complex IE?). SO what you could do is look for it in isolated storage first, or the app directory. If it doesn't exist, get it from the server and store locally. You should also think about additional capability to compare versions, local vs. server.
07-07-2009 7:40 AM |
I'm not sure you can say it has any machanism of caching becase after I shut down the Application with the browser and re-open it , it won't re-download.
Yeah I thought of storing locally, it's not a bad idea but perheps too time consuming for us.
07-07-2009 8:04 AM |
Shouldn't be too difficult. Quick check with a local absolute Uri() and an extra web service to compare versions.