# Problem with loading XML using ?nocache=" + new Date().getTime()

**URL:** <https://forum.kirupa.com/t/problem-with-loading-xml-using-nocache-new-date-gettime/229231>\
**Category:** Uncategorized\
**Created:** [June 15, 2007, 1:27am UTC](https://forum.kirupa.com/t/problem-with-loading-xml-using-nocache-new-date-gettime/229231 "2007-06-15T01:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OM2](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OM2](https://forum.kirupa.com/u/OM2)\
**Post date:** [June 15, 2007, 1:27am UTC](https://forum.kirupa.com/t/problem-with-loading-xml-using-nocache-new-date-gettime/229231/1 "2007-06-15T01:27:08Z")

</div>

I’m loading an XML file with ?nocache=" + new Date().getTime() added to the end of the file name: to make a fresh copy be loaded each time.

OK… this works fine.

BUT… what I need to do is load my SWF file from another domain.

This was a little tricky. But I’ve now solved.

All is working fine and loads in all browsers.  
**Only one problem: ■■■■ Internet Explorer!!!**  
(Works on Firefox and Mac OK.)

It loads up first time OK.  
But… thne when I refresh… this causes problems.

I spent a LOT of time figuring out what the ■■■■ problem was!  
I’ve found out the problem is the ?nocache=" + new Date().getTime().  
If I replace with the full URL: [http://www.mydomain.com/myXML?nocache=](http://www.mydomain.com/myXML?nocache=)" + new Date().getTime()… then the problem is solved.

The only thing is: I can’t do this.  
I’m building a mini system.  
The only way to make things work I can see are to compile a new version of the SWF file everytime!!!

I can’t really do this. ☹

Any ideas how I can fix my problem?  
**Is there any other way of loading a fresh copy of my XML file?**

Thanks.

OM
