6 Replies Latest reply on Dec 7, 2011 11:10 PM by archemedia

    A reliable (!) way of updating

    JonoB Level 1

      Whats the most reliable way of ensuring that users have the most recent version of my swf app?

       

      I release versions on a (sometimes) daily basis. My current method is:
      -change the swf file name (MyApp_v1.50.swf to MyApp_v1.51.swf)
      -update the html wrapper to point to the new swf

       

      But it seems to be a hit and miss affair. Different browsers seem to have their own rules for storing the swf in cache - sometimes it gets updated, sometimes not.

       

      Of course, clearing the browser cache and/or hitting shift+refresh works every time, but I cant expect users to do that.

       

      I've tried adding the following code to the <Head> tag, and although it helps some, it doesnt help every time
      <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
      <META HTTP-EQUIV="Expires" CONTENT="-1">

       

      The biggest culprit seems to be when users start their browser, and the browser tabs are automatically populated without the user actually navigating anywhere.

       

      Are there any simple solutions that guarantees the browser gets the most recent swf every single time that it needs to?