This content has been marked as final. Show 6 replies
Are you talking aboput the Flex app itself, or the result of a dataservice call?
You can try appending some always-different parameter value to the url. Some folks use Date, some use a random number.
You can also control caching in the browser by Tools, Options, Settings, Every Visit to the page
Yeah i tried the querystring trick but it just doesnt seem to work. When a user changes a rank to one of his properties in the app, the db updates fine, but some reason when i refresh the app, it goes back to the old value. I cant imagine why it would do that when its calling the service over again, it should just get the new results. I don't even know how its caching that. I clear the cache in IE and it then displays the new value. Its strange, and I dont want to have to tell all the clients using the tool that they have to clear their cache everytime, or even change a setting for that matter.
Thanks for the reply
Hmm, the querystring trick almost always works. I would not give up on that yet.
Do you have control of the server? Can you set the headers of the response? I don't recall the syntax, but seem to recall seeing it here sometimes back.
I put the following at the top of my PHP file
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
This seems to work for me to stop the IE caching problem. I haven't tried this with an XML file, but it might work. My PHP script returns XML formatted data.
Thank you so much. It works perfectly.
Does anyone know of a cold fusion version of the code posted by Masamune?