Refreshing an SL4 app

2011-09-07 Thread Greg Keogh
Folks, I have this random problem where I xcopy deploy all of my app files over to my Win2008 server box and the updated SL4 app doesn't appear, I get the previous version. I have spent hours over the previous months trying to figure this problem out. I restart IIS, I even reboot, I delete the

Refreshing an SL4 app (client problem?)

2011-09-07 Thread Greg Keogh
Well I should have asked my cat, because I browsed to the SL4 app from the outside world and it was the latest version. When browsing from my work machine I see the old version. So I restart my localhost IIS and delete temporary files in the browser, but it makes no difference. As an administrator

Re: Refreshing an SL4 app (client problem?)

2011-09-07 Thread Chris Anderson
It's because the browser is caching the app, and your IIS probably doesn't set any cache expiry headers. Here's some info: http://stackoverflow.com/questions/2281919/expiry-silverlight-xap-file-from-browser-cache-programmatically Chris On 8 September 2011 13:58, Greg Keogh wrote: > Well I sh

RE: Refreshing an SL4 app (client problem?)

2011-09-07 Thread Simon Hammer
Hi Greg, Funny, I was dealing with this today We handle this by having a version number in the xap filename (eg. SLAppName1.5.2.xap). This way whenever a new build goes on production, we know browsers will referencing the correct one. Simon. From: Chris Anderson [mailto:christh

RE: Refreshing an SL4 app (client problem?)

2011-09-07 Thread Greg Keogh
http://stackoverflow.com/questions/2281919/expiry-silverlight-xap-file-from- browser-cache-programmatically Interesting ... some solutions are browser specific, some need code and maintenance. Adding the "Cache-Control: no-cache" header seems the easiest by far, so I'll try it out at the app le

Re: Refreshing an SL4 app

2011-09-07 Thread Stephen Price
sounds like it may be the client machine caching the xap file. If that is your problem, if you clear the cache on the client machine and it then downloads the new xap file then the fix for this (one I've used anyway) is to append the modified date/time to the end of the url. So basically when ever

Re: Refreshing an SL4 app

2011-09-07 Thread Stephen Price
hehe, re-read your email and you did say it was SL4 app, so yeah, its probably what I said. :) On Thu, Sep 8, 2011 at 1:09 PM, Stephen Price wrote: > sounds like it may be the client machine caching the xap file. > > If that is your problem, if you clear the cache on the client machine and > it t

Re: Refreshing an SL4 app (client problem?)

2011-09-07 Thread Stephen Price
Ah didn't see this other thread. If you use the last modified time of the xap file then you will download the new version and if its updated then you automatically get the new one, but don't download it every time (which would happen if the url was different on every page load.) you only want the