Link to home
Start Free TrialLog in
Avatar of Dean OBrien
Dean OBrienFlag for United Kingdom of Great Britain and Northern Ireland

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
Avatar of Arijit S
Arijit S
Flag of India image

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).
Avatar of Dean OBrien

ASKER

Yes i have full access.

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();
                }
}

Open in new window

SOLUTION
Avatar of quizengine
quizengine
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.