XML caching?
Date: Jan 31, 2008
Views: 4541
Question:
I'm using the IMG Loop component, with the images being loaded from an XML file.
However, once I updated the XML file, the old version is being cached. How would I prevent this from happening?
Thanks
However, once I updated the XML file, the old version is being cached. How would I prevent this from happening?
Thanks
Answer:
| nerath (Admin) |
Hi , You would need to randomize the cache of the Xml being loaded. This should reset it everytime you load. Please make sure that the path of the xml is one on the server. You will get a error if trying to test locally. myComponent.contentXML = "content.xml?random="+Math.random()*100; Thanks, Nerath |
