Skip to main content

Microsoft Silverlight

Answered Question Imaging Caching on the Server? RSS Feed

(0)

Joseph Baggett
Joseph B...

Member

Member

2 points

7 Posts

Imaging Caching on the Server?

I am having an issue with trying to improve the overall load time of two xap files, in which their sizes are a couple of MB because of images specifically.  When the Silverlight applications load, it is cached temporarily on the client.  Is there a way to cache the images that my Silverlight xap files are using on the server?

 Is there another performance methodology in Silverlight I should be looking at?  Isolated Storage?

Joseph Baggett

http://www.myitstudio.com




MCSD, MCPD: Web Developer, MCITP: Database Developer, MCTS: SQL Server 2005, MCTS: .NET 2.0 Web Applications, MCTS: .NET Framework 2.0 Windows Applications, MCTS: .NET Framework 2.0 Windows Applications, MCAD, MCP

If the project doesn't work, blame Scott Guthrie and/or refer to the problem solving flowsheet. O.~

.netdan
.netdan

Contributor

Contributor

3392 points

513 Posts

Re: Imaging Caching on the Server?

Do you mean cache the images on the client? If thats the case then do not include the images in the XAP and refer to them directly in silverlight and they will be cached by the browser as normal. Please let me know if I have mis-understood you?

Remember to click "Answer" if this has helped you!

Dan Birch
MCSD, MCAD, MCP
Free Silverlight Controls | Free .NET Silverlight CMS

Joseph Baggett
Joseph B...

Member

Member

2 points

7 Posts

Re: Imaging Caching on the Server?

Are you saying you not to store the images in the Silverlight application?  I'm really not sure if I'm wrong, but aren't the images in the xap file cached temporarily on the client when the xap file is initially downloaded? 

Basically, my Silverlight application will never need to change, so I was wondering if there was a more efficient way of getting the xap file, with images, to the client.

Sorry, I'm actually relatively new to Silverlight, and haven't seen too many resolutions on this matter.  I'm going to implement some compression modules, but I know it will only help so much.  I wish I could override the ability to have to wait for the entire download and download/begin sections of the applications while the download is still taking place, specifically on images b/c I know it is holding up the app from running initially. 

 Thanks for the response.

 

Joseph Baggett

http://www.myitstudio.com




MCSD, MCPD: Web Developer, MCITP: Database Developer, MCTS: SQL Server 2005, MCTS: .NET 2.0 Web Applications, MCTS: .NET Framework 2.0 Windows Applications, MCTS: .NET Framework 2.0 Windows Applications, MCAD, MCP

If the project doesn't work, blame Scott Guthrie and/or refer to the problem solving flowsheet. O.~

.netdan
.netdan

Contributor

Contributor

3392 points

513 Posts

Answered Question

Re: Imaging Caching on the Server?

As far as I know the whole XAP file is cached only and any changes to the XAP on the server whether it be to the containing images or not the whole XAP will be downloaded again by the browser.

If your Silverlight application will never change then its fine to store the images in the XAP as the XAP will never change it will be downloaded once and cached in the browser.

If you want to download the images (or any other content) separate as a background process then you should look at this article about downloading on demand.

Remember to click "Answer" if this has helped you!

Dan Birch
MCSD, MCAD, MCP
Free Silverlight Controls | Free .NET Silverlight CMS
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities