IE Caching Flash object AC_RunActiveContent.js file


My page uses Flash to create a chart using an XML file as a datasource. Internet Explorer has a death-grip on this chart and will not refresh the data in the chart no matter what I do unless I manually delete the temp files in IE and refresh. The xml data is being updated and the chart works fine in Firefox and Chrome - only IE has this issue.  I don't know if it is refreshing the xml file, the AC_RunActiveContent.js file or both.

I also tried this suggestion of appending the date to the swf file name to force a refresh of the swf and even that doesn't work.

<head runat="server">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="cache-control" content="no-store">
    <meta http-equiv="cache-control" content="private">
    <meta http-equiv="cache-control" content="max-age=0, must-revalidate">
    <meta http-equiv="expires" content="now-1">
    <meta http-equiv="pragma" content="no-cache">

    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>


<script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
                  'codebase', ',0,0,0',
                  'width', '450',
                  'height', '250',
                  'src', 'AS3_sample',
                  'quality', 'high',
                  'pluginspage', '',
                  'align', 'middle',
                  'play', 'true',
                  'loop', 'true',
                  'scale', 'showall',
                  'wmode', 'window',
                  'devicefont', 'false',
                  'id', 'AS3_sample',
                  'bgcolor', '#ffffff',
                  'name', 'AS3_sample',
                  'menu', 'true',
                  'allowFullScreen', 'false',
                  'allowScriptAccess', 'sameDomain',
                  'movie', 'AS3_sample',
                  'salign', ''
                  ); //end AC code

      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="450" height="250" id="AS3_sample" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="AS3_sample.swf" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#ffffff" />      
      <embed src="AS3_sample.swf" quality="high" bgcolor="#ffffff" width="450" height="250" name="AS3_sample" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="" />
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I take that it is the case where the actual SWF does not change but the data source XML file, which probably is hard coded inside the Flash, is being cached in IE???

Why don't you throw in a random number at the end of the XML file name so that you are forcing it to reload everytime???

   _xml.load("data.xml?cachebuster=" + new Date().getTime());


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
shankwheatAuthor Commented:
This worked fantastic.  Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.