Page 1 of 1

How to clear temp client browser files

Posted: Wed Oct 29, 2008 9:21 am
by panprasath
My page display flash images…..in each time it will call same xml file(for flash) with different images…..but in Ie6 the past xml is stored in the client side…so that new images are not displayed…..so how to clear this fie in client side…..


I also try the following script but not work





header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");




Please help me

Re: How to clear temp client browser files

Posted: Wed Oct 29, 2008 11:34 am
by Jenk
You can't. You've already got the most reliable, but none are guaranteed.

Re: How to clear temp client browser files

Posted: Wed Oct 29, 2008 3:12 pm
by Eran
Simply add a random string as a get parameter for the file. If the string is different each time, the file will be reloaded each time. Something like:

Code: Select all

 
images.xml?r=<?php echo mt_rand(); ?>
 
If you are loading the xml directly from the flash and not via a parameter, use Math.random to achieve the same effect.

Re: How to clear temp client browser files

Posted: Wed Oct 29, 2008 11:36 pm
by panprasath
please give any example files for flash.......