R – force firefox to get most current version of silverlight app

firefoxsilverlight

This question has been asked before but 1) the user never accepted an answer 2) none of them stand out as better than the others (votes-wise) and 3) the asker seems to have forgotten about it. So I'm going to ask it again so I can get to an accepted answer. And some of the users in the thread have said that some of the solutions didn't work. Sorry for cluttering up the place, but I promise to get to the bottom of this.

I ran into this problem the other day when I was looking at my Silverlight app in Firefox. I made a change to the location of an image and it didn't move. I assumed I did it wrong, but then I looked at IE7 and the image was in the right place. Turns out Firefox was displaying a cached version of the file; the changes I made didn't show up.

This is a larger problem: if I change my app (let's say it's an urgent typo correction) how can I force the end user to see the most current version of my Silverlight app? Is isolated storage (Heuer's blog) really the only way to force an update from the server side? Clearing the Firefox cache is not going to work for a push update; I need the update to propagate without the end user doing anything.

Update: Dino Esposito has some ideas about controlling this, specifically using the Expires property of the Response object. Haven't had a chance to try this yet.

Best Answer

Can you encode the version number or timestamp in the filename? That way, if the page changes, Firefox will notice that it points to a completely different resource and will reload it.

Related Topic