music_lp90 1 Posted September 15, 2008 Report Share Posted September 15, 2008 Hi, I need to get IE to reload my swf every time the page is accessed. Firefox reloads it fine, but IE only reloads the swf if I open the page in a new window each time.I've tried this: <meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache-control" content="must-revalidate"><meta http-equiv="Cache-control" content="max-age=0"> and this: <?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past ?> But it doesn't seem to work.Thanks for any help! Quote Link to post Share on other sites
justsomeguy 1,135 Posted September 15, 2008 Report Share Posted September 15, 2008 Add a random value to the URL for the SWF, like as a querystring parameter. Quote Link to post Share on other sites
music_lp90 1 Posted September 15, 2008 Author Report Share Posted September 15, 2008 That doesn't seem to work, unless I'm not doing it correctly.Here's what I did: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="800" height="1600" id="planCreator_Resize" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="planCreator_Resize.swf?reload=<?php echo time(); ?>" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#006633" /> <embed src="planCreator_Resize.swf?reload=<?php echo time(); ?>" quality="high" scale="noscale" bgcolor="#006633" width="800" height="1600" name="planCreator_Resize" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object> Thanks for your help. Quote Link to post Share on other sites
justsomeguy 1,135 Posted September 15, 2008 Report Share Posted September 15, 2008 That should work, unless the HTML is getting cached and it's reading the old filename. Quote Link to post Share on other sites
music_lp90 1 Posted September 15, 2008 Author Report Share Posted September 15, 2008 Maybe it's not the flash that needs to reload then. Maybe it needs to reload the xml document that flash is getting the saved data from. Would IE be caching the xml file? Quote Link to post Share on other sites
justsomeguy 1,135 Posted September 15, 2008 Report Share Posted September 15, 2008 I'm not sure, it might be. Quote Link to post Share on other sites
music_lp90 1 Posted September 15, 2008 Author Report Share Posted September 15, 2008 Okay, that was the problem. It was the xml, not the swf.So, this fixed it:my_xml.load("testFile.xml?cachebuster=" + new Date().getTime());Thanks for the help. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.