Reputation: 21
I have found to reload the .swf file everytime so the user has the latest version, add the following code to eliminate caching by the browser:
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
Anyone have other suggestions?
Thanks!
Upvotes: 2
Views: 1039
Reputation: 2614
The meta tag only instruct the browser not to cache the html page, but not its assets. To avoid caching, instead of embedding the SWF like "foo.swf"
, try it like "foo.swf?c=" + new Date().getTime()
The same trick goes for any other embedding dynamic assets including videos, audios as well as dynamic images.
Upvotes: 3