PDA

View Full Version : stop swf caching...


arianhojat
10-13-2006, 09:14 PM
I have googled and theres seems to be a few ways to do it... (most which do not seem to work for me)

1.
put <meta http-equiv="Expires" content="Mon, 04 Dec 1999 21:29:02 GMT"> in <head>
2.
put <meta http-equiv="PRAGMA" content="NO-CACHE"> in <head>
3.
try this with javascript or php... php seems to work but this javscript i assumed would work but doesnt anyone know why?
(FF works with this Javascript one but IE doesnt)

<script type="text/javascript">
d = new Date();
url = "quiz.swf"+ "?random=" + d.getTime();
</script>
...
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="quiz" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<script type="text/javascript">document.write('<param name="movie" value="'+ url +'" />');</script>
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<script type="text/javascript">document.write('<embed src="'+ url +'" quality="high" bgcolor="#ffffff" width="550" height="400" name="quiz" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');</script>
</object>

anyway looking to any othe solutions you guys have gotten to work.