Hi I create a txt file with php and then load it into flash, no is there a way not to cache taht txt file, it's not going to update alot, but we need to get the latest one everytime...:afro: Many thanx in advance...
var pathToFile = "text.php?date=" + Date.getTime();
i think that should work.
thanx thought so, easier to load php from flash than reading the textfile, thanx mosquito
no sweat. i've run into the problem before with flash caching xml docs, and that was the only work around i could come up with in flash to trick it into beleiving that it was a new file even though the php file does no handling on the date value.
I am having a similar problem to subman and you too mosquito. I have an xml file that is updating in response to user input. Searches that sort of thing. However on IE the php page is cached and will not poll the server again. Is there any other ways of accomplishing this?
I tried adding this to the html document
No luck.
What did work is adding the following to the php script
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-control: private, no-cache");
only I am not sure if there are any other issue that sending an out of date header will cause. Can you see any
does anyone know if flash stores xml cache differently/anywhere different than the browser does?
Originally posted by: tenPlus does anyone know if flash stores xml cache differently/anywhere different than the browser does?
Not to my knowledge. It stores it the same...
cheers Hideaway ![]()
watch out for AOL's acceleration and other "broadband" dial up providers which cache files on the isp level.
Originally posted by: persist watch out for AOL's acceleration and other "broadband" dial up providers which cache files on the isp level.
how often do they purge them? 24hrs? never?
Originally posted by: persist watch out for AOL's acceleration and other "broadband" dial up providers which cache files on the isp level.
This is such an issue where I am. It tends mostly to happen with international data, but adding the var strings to the end of urls usually prevents this as it always thinks its a new file to be called. I have had cases where it was cached at the server for months (well actually it might have been forever, since I reworked the calling of the files and don't actually know if it was ever refreshed).
adding a custom file extension for the php module to recognize usually fools AOL. Most ISP caching works on recognition of common extensions.
so .pft is one AOL won't recognize as a data returning extension and it won't do any isp level cache of the text.