This project has moved and is read-only. For the latest updates, please go here.

xap caching

Apr 7, 2011 at 5:56 AM

Hi guys,

I am using MEF in my Silverlight 4 app. I use DeploymentCatalog to download xap file dynamically.

I can’t figure out how to cache xap files so application won’t download them from the server every time it runs. Does DeploymentCatalog / MEF for SL support caching at all?

Please advise

Apr 8, 2011 at 7:40 AM

That would be handled by the browser, not MEF.

Make sure you have set the proper HTTP headers Cache-Control on your xap file.

Apr 8, 2011 at 8:13 AM

Hi Clement,

Thank you for your reply.

I am newbie to Silverlight. Could you please explain how do I set the proper HTTP headers Cache-Control on my xap files?