How can I prevent my XML files from being cached by the browser?
This is an issue for not only XML files, but also many sorts of files that can pull in dynamic content. When the browser caches the file, every hit to this file after its loaded will pull up its first instance. To avoid this, you must make the file unique in some way. The simplest method is to dynamically append a name/value pair at the end of the file. When you do this, it makes no difference to the server, but the browser sees this file as unique and thus will hit the server for this file instead of pulling it from the cache. Lets quickly demonstrate this. The following is how you might normally load in a file: http://www.xmlinflash.com/content.xml By simply modifying the URL for this file load, you can set it to be unique by attaching a random value at the end. First, inside Flash, you will want to create a variable container to store the value before loading the XML file: dontCache = random(100000); You have set the random variable equal to a value between 0 and 100,000. Now you co