TwelvestoneFlash

cache textfile


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
subman
 
2003-06-18

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...

mosquito
 
2003-06-18

var pathToFile = "text.php?date=" + Date.getTime();

i think that should work.

subman
 
2003-06-18

thanx thought so, easier to load php from flash than reading the textfile, thanx mosquito

mosquito
 
2003-06-18

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.

jimberlina
 
2007-12-05

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

tenPlus
 
2007-12-06

does anyone know if flash stores xml cache differently/anywhere different than the browser does?

Hideaway
 
2007-12-06

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...

tenPlus
 
2007-12-07

cheers Hideaway k

persist
 
2007-12-14

watch out for AOL's acceleration and other "broadband" dial up providers which cache files on the isp level.

tenPlus
 
2007-12-14

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?

mystic_juju
 
2007-12-19

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).

persist
 
2007-12-19

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.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

cache textfile