3 Replies Latest reply on May 3, 2006 8:03 AM by Peter Lorent

    Force IE to reload a swf file

      Hi there.

      I am looking for a solution since long days, and I'll ne in trouble if I don't find any solution.
      Thanks to read.. ^^

      I generate an XML files each time I load my php page.
      This xml file is read by my swf file, and display different infomation, depending of xml file.

      The pbl is that IE 6 use cache, and display all the time the same swf (it reloads swf from cache, and not from server)

      I tried different method to control cache as :

      1/ Meta names
      <META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT">
      added in HEAD of HTML page

      2/ working with headers.
      header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
      header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
      header ("Cache-Control: no-cache, must-revalidate");
      header ("Pragma: no-cache");

      3/ Working with name of SWF file
      <param name="movie" value="flash/liste_bulle.swf?a={$rand_val}">
      with {$rand_value} is a random value generated on every request

      4/ working with full name of SWF.
      I use apache rewrite mod.
      so I try to use different name of SWF file, each time I load page, with random value as in point3/
      => <param name="movie" value="flash/liste_bulle_{$rand_val}.html">
      Yes, .html because in my .htacces wich manage rewriterule, I added

      RewriteRule \
      liste_bulle_([0-9]*).html \
      flash/liste_bulle.swf [L]

      5/ param in object tag
      add param in my <object> tag as
      <param name="cache" value="false">
      I also try

      but this great IE still not reload the swf.

      The only way to force IE to reload flash is to configure the client,
      in cache control preference, ask ie to check "every visit of the page" if a newer version is present.
      But I cannot ask all my visitors to configure this.

      Has anyone any idea please ?
      Any help will be appreciated.

      Thx a lot.