[flexcoders] Re: SWF Cache
If you can add content (besides your Flex app) to the server, you can do both. http://www.adobe.com/devnet/flex/articles/version_sync_ria.html It's an older article but the concepts still apply. Long story short, your Flex app can periodically read some server side data (say, an XML page via HTTPService), compare the version number of the app to the latest available version, and force the browser to reload if a newer version is available. --- In flexcoders@yahoogroups.com, Don Kerr [EMAIL PROTECTED] wrote: Thanks Kevin! I'll give it a try. Since I'm continual enhancing the apps for my users, ensuring the correct version is higher priority than a faster download. I appreciate the help. Don Don Kerr Manager, Space City AUG http://www.spacecityaug.com --- In flexcoders@yahoogroups.com, Kevin Fauth Kevin.Fauth@ wrote: Hey Don- It's a quick and dirty trick to prevent caching, but if you're just writing a single Flex app (1 swf, no modules) then you can append some random GET data to the tail end of the swf extension. For instance, instead of doing: EMBED src=effect.swf quality=high ... you would do: EMBED src=effect.swf?v=1.1.05 quality=high ... If you're using the AC_OETags.js file, then you'll have to modify line 180 in Flex 2 or 187 in Flex 3 to include your versions (think of escaping Date() or something like that). That *should* ensure a clean version coming down. Keep in mind that even a 300k Flex app can take a good amount of time to d/l for dial-up users, so caching isn't necessarily a bad thing. Otherwise, just make sure your meta tags are in the HEAD section of your HTML. - Kevin --- In flexcoders@yahoogroups.com, Don Kerr fusionpage@ wrote: BTW, I've tried all the html tricks and none work in IE or Firefox... META HTTP-EQUIV=Cache-Control CONTENT=no-store META HTTP-EQUIV=Expires CONTENT=Mon, 04 Dec 1999 21:29:02 GMT META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 I need a browser-independent solution for always ensuring my flex apps load the current version. Maybe there is something in Actionscipt that I can do to force reload of the swf from the server? I don't know. Any suggestions? --- In flexcoders@yahoogroups.com, Don Kerr fusionpage@ wrote: How can I prevent my Flex app swf from being cached? When I release a new version, I want to ensure the user is using the latest swf. Thanks, Don
[flexcoders] Re: SWF Cache
Thanks Doug. It is brilliantly simple ... and I like using a CFC to handle it. I'll give this a try. Thanks! Don Kerr --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: If you can add content (besides your Flex app) to the server, you can do both. http://www.adobe.com/devnet/flex/articles/version_sync_ria.html It's an older article but the concepts still apply. Long story short, your Flex app can periodically read some server side data (say, an XML page via HTTPService), compare the version number of the app to the latest available version, and force the browser to reload if a newer version is available. --- In flexcoders@yahoogroups.com, Don Kerr fusionpage@ wrote: Thanks Kevin! I'll give it a try. Since I'm continual enhancing the apps for my users, ensuring the correct version is higher priority than a faster download. I appreciate the help. Don Don Kerr Manager, Space City AUG http://www.spacecityaug.com --- In flexcoders@yahoogroups.com, Kevin Fauth Kevin.Fauth@ wrote: Hey Don- It's a quick and dirty trick to prevent caching, but if you're just writing a single Flex app (1 swf, no modules) then you can append some random GET data to the tail end of the swf extension. For instance, instead of doing: EMBED src=effect.swf quality=high ... you would do: EMBED src=effect.swf?v=1.1.05 quality=high ... If you're using the AC_OETags.js file, then you'll have to modify line 180 in Flex 2 or 187 in Flex 3 to include your versions (think of escaping Date() or something like that). That *should* ensure a clean version coming down. Keep in mind that even a 300k Flex app can take a good amount of time to d/l for dial-up users, so caching isn't necessarily a bad thing. Otherwise, just make sure your meta tags are in the HEAD section of your HTML. - Kevin --- In flexcoders@yahoogroups.com, Don Kerr fusionpage@ wrote: BTW, I've tried all the html tricks and none work in IE or Firefox... META HTTP-EQUIV=Cache-Control CONTENT=no-store META HTTP-EQUIV=Expires CONTENT=Mon, 04 Dec 1999 21:29:02 GMT META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 I need a browser-independent solution for always ensuring my flex apps load the current version. Maybe there is something in Actionscipt that I can do to force reload of the swf from the server? I don't know. Any suggestions? --- In flexcoders@yahoogroups.com, Don Kerr fusionpage@ wrote: How can I prevent my Flex app swf from being cached? When I release a new version, I want to ensure the user is using the latest swf. Thanks, Don
[flexcoders] Re: SWF Cache
BTW, I've tried all the html tricks and none work in IE or Firefox... META HTTP-EQUIV=Cache-Control CONTENT=no-store META HTTP-EQUIV=Expires CONTENT=Mon, 04 Dec 1999 21:29:02 GMT META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 I need a browser-independent solution for always ensuring my flex apps load the current version. Maybe there is something in Actionscipt that I can do to force reload of the swf from the server? I don't know. Any suggestions? --- In flexcoders@yahoogroups.com, Don Kerr [EMAIL PROTECTED] wrote: How can I prevent my Flex app swf from being cached? When I release a new version, I want to ensure the user is using the latest swf. Thanks, Don
[flexcoders] Re: SWF Cache
Hey Don- It's a quick and dirty trick to prevent caching, but if you're just writing a single Flex app (1 swf, no modules) then you can append some random GET data to the tail end of the swf extension. For instance, instead of doing: EMBED src=effect.swf quality=high ... you would do: EMBED src=effect.swf?v=1.1.05 quality=high ... If you're using the AC_OETags.js file, then you'll have to modify line 180 in Flex 2 or 187 in Flex 3 to include your versions (think of escaping Date() or something like that). That *should* ensure a clean version coming down. Keep in mind that even a 300k Flex app can take a good amount of time to d/l for dial-up users, so caching isn't necessarily a bad thing. Otherwise, just make sure your meta tags are in the HEAD section of your HTML. - Kevin --- In flexcoders@yahoogroups.com, Don Kerr [EMAIL PROTECTED] wrote: BTW, I've tried all the html tricks and none work in IE or Firefox... META HTTP-EQUIV=Cache-Control CONTENT=no-store META HTTP-EQUIV=Expires CONTENT=Mon, 04 Dec 1999 21:29:02 GMT META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 I need a browser-independent solution for always ensuring my flex apps load the current version. Maybe there is something in Actionscipt that I can do to force reload of the swf from the server? I don't know. Any suggestions? --- In flexcoders@yahoogroups.com, Don Kerr fusionpage@ wrote: How can I prevent my Flex app swf from being cached? When I release a new version, I want to ensure the user is using the latest swf. Thanks, Don
[flexcoders] Re: SWF Cache
Thanks Kevin! I'll give it a try. Since I'm continual enhancing the apps for my users, ensuring the correct version is higher priority than a faster download. I appreciate the help. Don Don Kerr Manager, Space City AUG http://www.spacecityaug.com --- In flexcoders@yahoogroups.com, Kevin Fauth [EMAIL PROTECTED] wrote: Hey Don- It's a quick and dirty trick to prevent caching, but if you're just writing a single Flex app (1 swf, no modules) then you can append some random GET data to the tail end of the swf extension. For instance, instead of doing: EMBED src=effect.swf quality=high ... you would do: EMBED src=effect.swf?v=1.1.05 quality=high ... If you're using the AC_OETags.js file, then you'll have to modify line 180 in Flex 2 or 187 in Flex 3 to include your versions (think of escaping Date() or something like that). That *should* ensure a clean version coming down. Keep in mind that even a 300k Flex app can take a good amount of time to d/l for dial-up users, so caching isn't necessarily a bad thing. Otherwise, just make sure your meta tags are in the HEAD section of your HTML. - Kevin --- In flexcoders@yahoogroups.com, Don Kerr fusionpage@ wrote: BTW, I've tried all the html tricks and none work in IE or Firefox... META HTTP-EQUIV=Cache-Control CONTENT=no-store META HTTP-EQUIV=Expires CONTENT=Mon, 04 Dec 1999 21:29:02 GMT META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Expires CONTENT=-1 I need a browser-independent solution for always ensuring my flex apps load the current version. Maybe there is something in Actionscipt that I can do to force reload of the swf from the server? I don't know. Any suggestions? --- In flexcoders@yahoogroups.com, Don Kerr fusionpage@ wrote: How can I prevent my Flex app swf from being cached? When I release a new version, I want to ensure the user is using the latest swf. Thanks, Don