How to clear cache in flex?

sunilmkt

Member
Nov 21, 2012
38
0
61
When I deploy new SWF file, the content SWF file comes from cache of the browser.

is There another method when I deploy SWF file, SWF file first clear cache data from browser and run the latest Changes of SWF file.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
The most common way to sidestep the browser cache that I am aware of is to append a unique value to the end of the url as a dummy parameter. Usually this is a timestamp. So your url might look like this now...

http://no.where.com/myflick.swf

And after applying this trick it looks like...

http://no.where.com/myflick.swf?t=11002564

The added parameter is different everytime the page is generated, and while it is ignored by the server because it's meaningless, it fools the browser into ignoring the cached version.