all groups > flash data integration > november 2005 >
You're in the

flash data integration

group:

Issues with cached xml files on server



Issues with cached xml files on server knoxx
11/17/2005 10:43:07 PM
flash data integration: Hi,

I wondering if anyone has had an issue with cached xml files on the server. I
have an asp.net application that sits on a server and domain that creates a xml
file. The actual .swf file exists on a different server and domain and pulls
the xml file and displays the data. The problem is that once you publish the
xml file, sometimes the when you view the .swf file it pulls the old data. I
understand how different browsers cache data, like internet explorer, you can
change the setting to view html pages everytime you view the page versus
automatically.

If anyone can recommend a better methodology or tool, please let me know.
Thanks in advance!

Thanks,
Jaime Cavazos
Re: Issues with cached xml files on server timschot
11/21/2005 11:43:14 PM
Throw a timestamp on the end of the url of the xml file you're loading. It'll
solve your problem.

var date = new Date();
var ts = ts.getTime();

xmlobject.load("something.xml?ts="+ts);

Or if you're passing the url dynamically, you could use .net to generate a
timestamp and pass it to flash.. either way will work.

Tim
AddThis Social Bookmark Button