# Flash player cache question

**URL:** <https://forum.kirupa.com/t/flash-player-cache-question/291931>\
**Category:** flash\
**Created:** [July 7, 2009, 7:59pm UTC](https://forum.kirupa.com/t/flash-player-cache-question/291931 "2009-07-07T19:59:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragonfly](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dragonfly](https://forum.kirupa.com/u/dragonfly)\
**Post date:** [July 7, 2009, 7:59pm UTC](https://forum.kirupa.com/t/flash-player-cache-question/291931/1 "2009-07-07T19:59:52Z")

</div>

I’m currently testing an application that will eventually be deployed via touchscreen kiosk with a web connection.

I want to load an XML file from a server for an “events” application within the kiosk. Currently I am editing and testing an XML file which will hold the events content. In order to keep the xml content from caching and preventing me from seeing changes during testing, I am using the tip found a this url:

[http://www.kirupa.com/developer/actionscript/tricks/cache.htm](http://www.kirupa.com/developer/actionscript/tricks/cache.htm)

In my example, I am using AS3 and loading an XML file, so for me, it looks like this:

```auto

var myID:String = String(Math.round(Math.random()*10000));
var xmlString:URLRequest=new URLRequest("http://www.myurl.com/dev/events.xml?uniq="+myID);

```

It works great, but brings up some questions. First, does this mean that each time this app loads a new xml file, that one will be left in the cache causing the cache to grow in size infinitely?

If I don’t do the above trick, will my app ever display an updated version of the XML file?

Please keep in mind this is going to be a 24/7 stand alone kiosk which I intend to have periodically load a new xml file from a server. I’ll probably use Zinc to schedule a system restart every night.
