Dean OBrien
asked on
Force flash / browser not to cache XML file
Experts,
I am using a flash calendar which is driven by an xml file.
I have written a PHP file that rewrites the XML via an interface. My problem is that in order to see the changes in the flash swf, the user needs to close the browser and open another instance for the changes to be visible. The browser seems to be caching the orignial information.
I have added a META NO CACHE tag on all the pages, but this has no effect.
For info you can see the site calendar at www.ashleighcottage.co.uk
Any suggestions
Easynow
I am using a flash calendar which is driven by an xml file.
I have written a PHP file that rewrites the XML via an interface. My problem is that in order to see the changes in the flash swf, the user needs to close the browser and open another instance for the changes to be visible. The browser seems to be caching the orignial information.
I have added a META NO CACHE tag on all the pages, but this has no effect.
For info you can see the site calendar at www.ashleighcottage.co.uk
Any suggestions
Easynow
Can you change the flash code? If not, this will be tricky - as your web page doesn't seem to be passing the XML as parameter (so assuming XML link/reference is hardcoded in swf).
ASKER
Yes i have full access.
Code snippet below shows the xml file being brought in.
Cheers
Easynow
Code snippet below shows the xml file being brought in.
Cheers
Easynow
xml_file = "data.xml";
my_xml = new XML();
my_xml.ignoreWhite=true;
my_xml.load((_root.folderPath?_root.folderPath:"") + xml_file);
original= new Object();
var my_acc = new Array();
my_xml.onLoad = function(load_ok){
if (load_ok){
construct_calendar();
}
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I wanted to provide the random parameter option - that is why wanted to verify wheather you have access to source or not. :) But I am fine with your request to close this question.