tags:

views:

52

answers:

1

Is there a way to insure that when a user views my Flex app they are using the newest version and not using a cached version?

Thanks.

A duplicate of this post -- preventing-flex-application-caching ....

+1  A: 

If you are using a server-side scripting language, take the content of the HTML wrapper, put it into a script file and add something random to the end of the SWF's URL:

content/application.swf?1234567890

Appending the current time in milliseconds usually works well.

cliff.meyers
But I am using AC_FL_RunContent("src", "MothersRings", ...); which doesn't say the extension, so how can I add ?123 after the extension? Get what I mean?
John Isaacks
You could update the Javascript function in AC_OETags.js to append the randomized bit to the query string. None of the functions in that file are super complicated.
cliff.meyers