Skip navigation
Currently Being Moderated

browser caché is problem for updates

Aug 1, 2012 11:54 PM

Hi.

I am developing an online virtual world to teach English. The good thing about flash is the browser caché so you don't wait for eveything to load everytime BUT I am having problems when I update a file. If I don't empty the caché then the old file is loaded and the new one ignored. There must be a solution to this otherwise people will always end up with an old version of all my files. We CANT expect a client to clear his/her caché obviously. I have never been asked to do that by any online product but I sometimes see updates so there is a way.

Cheers in advance for any help.

 
Replies
  • Currently Being Moderated
    Aug 2, 2012 4:41 AM   in reply to codeBeastAdobe

    One approach is to add a random number query variable to the file string so that the call is forced to go to the server to process the query string, as in...

     

    new URLRequest("http://www.site.com/geData.php?&nocache="+Math.random());

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points