11/15/2011 4:26:47 AM
Title:
How to disable/stop from cache in firefox.
How can I force the web browser to reload a newly deployed Flash file without clearing the cache?
tried the below..
change the source name by tagging version(extra characters).
src="/flex/Prototype.swf?ver=1.0.1"
the above works in Internet Explorer but does not work in Firefox and Chrome.
11/23/2011 10:59:42 PM
I always change the swf name in incremental order to avoid caching issue. Like
myswf1.swf
myswf2.swf
this will force the browser to load new file always and also gives you the benifit of caching until a new file is replaced.
11/23/2011 11:02:13 PM
src="/flex/Prototype.swf?ver=1.0.1" this will work in all the browsers as far as you are increasing the version number with each new file updated to something like
ver=1.0.2
ver=1.0.3
ver=1.0.4
and so on.
This makes browser think it as a new file always.
11/23/2011 11:26:53 PM
Tried above methods but it works only in internet explorer
and not in firefox ,Chrome;
thnx for reply..
11/23/2011 11:50:42 PM
Ok got your problem. There are 2 things which cause this problem , one is your page that contains the swf and 2nd is the swf file itself. So if The page itself is cached then it will always show the old HTML code and will load old file only. So along with the above solution you also need to stop page caching. Say your html page is test.html.
use test.html?ver=1.1 and so on for this also. This will make a new page load when file is updated and the older code will load new swf each time