When I deploy a new .swf
file in an HTML file as shown below, I have to clear the browser cache before the new .swf
file loads in the browser. Is there anyway to force the browser to load the .swf
file when I replace it with a new one on the server.
<embed type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.adobe.com/go/getflashplayer" allowscriptaccess="sameDomain" name="Prototype" bgcolor="#869ca7" quality="high" id="Prototype" src="/flex/Prototype.swf">
Thanks, Chirag
change the source name by tagging.
src="/flex/Prototype.swf?ver=1.0.1"
I do the same but add a random number so I don't have to write a new number every time
src="/flex/Prototype.swf?<?= rand() ?>"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With