In your embed code, where ever you are a SWF file, you must put a random number or timestamp of some type in the request. Whenever there is a query string that changes, the browser does not cache the page.
"MySWFName.swf?t=" + new Date().getTime();
A better way would be to embed SWF using SWFObject with this code.
In the html body tag do this.
<body onLoad="loaded()" onunload"doUnload( )"> <div id="replaceMe">Loading content.</div> </body>
and for javascript to do this (obviously, changing the material enclosed in {} to your needs
<script type="text/javascript" src="swfobject.js"> <script type="text/javascript"> function loaded() { var flashvars={}, params={}, attributes={}, tmp, version, width, height, container, flashObj; flashvars.userName = "testvar"; params.menu = "true"; params.quality = "high"; params.bgcolor = "${bgcolor}"; params.allowscriptaccess = "always"; params.allownetworking = "all"; attributes.id = "${application}"; attributes.name = "${application}"; attributes.align = "middle"; attributes.allowscriptaccess = "always"; attributes.allownetworking = "all"; tmp = "expressInstall.swf"; version = "${version_major}.${version_minor}.${version_revision}"; width = "${width}"; height = "${height}"; container = "replaceMe"; flashObj = "${swf}.swf?t=" + new Date().getTime(); swfobject.embedSWF(flashObj, container, width, height, version, tmp, flashvars, params, attributes); } </script>
Remember to add a copy of SWFobject
You will never have caching problems.
EDIT: BTW, if you replace your code in the html.template.html file with this code, it will generate values ββfor you. :)
source share