How to disable Silverlight caching in IIS 7 with Web config.

Posted By  Mostafa Elzoghbi On 25 Oct 2011 08:10:29
emailbookmarkadd commentsprint
No of Views:3801
Bookmarked:0 times
Votes:0 times

Introduction

I was trying to disable Silverlight caching in IIS 7, and when i deployed my solution to Windows 2008 Ent. in Windows Azure. Every time you click on the xap file that i need to disable caching on it by checking expire web content immediately after i clicked on Set Common Headers link on the right pane, the web.config is not being updated at all. but this works on my local IIS.

I ended up with adding this attribute that has been added my local IIS to web.config and deploy it so i don't need to do this every time i perform a deployment.

<system.webServer> 
     <staticContent> 
      <clientCache cacheControlMode="DisableCache" /> 
    <staticContent>       
<system.webServer>

To disable caching in Silverlight "xap" file from IIS, Here is the article that i'm referring to:

http://www.silverlightshow.net/items/Caching-of-in-and-around-your-Silverlight-application-part-1.aspx

Hope this tip helps.

Sign Up to vote for this article
Other popular Tips/Tricks
    SilverLight is a web application framework.Multimedia,graphics,adobe flash,animation are integrated into single environment.
    Published Date : 23/May/2010
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top