A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Browser Cache Problem - Help me out please!

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    2
    I have a problem. I want to load a text file with some basic HTML code. The only thing stands in the way: caching. If I change the text file, it still stays the same on the flash movie. Of course if I visit the text file, the flash movie will have to new version! Help me! Thanks in advance.

  2. #2
    Vox = Voice Vox98's Avatar
    Join Date
    Mar 2001
    Posts
    879
    Are you talking about viewing it on the web? Are you updating the text file in flash?

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Posts
    2

    Post

    The text file is separate, and is edited without going through Flash at all. It is going to be viewed.

  4. #4
    Senior Member
    Join Date
    Sep 2001
    Posts
    118
    Try loading the text file from flash and add a variable to the end, like so: LoadVariablesNum ("textfile.txt?1", 0)

    This will make the server look for a newer version of the file, and prevent the cacheing. You can go to the Macromedia site and search for "preventing cache" and you'll get three results/methods on accomplishing this, including to methods involving meta tags in your host HTML file.

    Good luck!

    Oh, and open a new window and refresh then, sometimes it doesn't refresh if you try it in the same window (even if you press Ctrl-F5 or Shift-F5 in Netscape).

  5. #5
    Senior Member
    Join Date
    Jun 2001
    Posts
    2,943
    Macromedia also recommended several solutions:

    http://www.macromedia.com/support/fl...nt_caching.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center