A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: SWF Files and Browser Cache

Hybrid View

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    1

    SWF Files and Browser Cache

    Hi,

    I make very simple flash banners for my website announcing updates. I keep the filename the same, so when it's updated, anyone who has my banner on their site does not have to re-arrange their HTML code.

    The problem is that when I replace the old SWF file with the new one, my browser keeps the old file in cache. Even a Shift+F5 (forced refresh in Mozilla) does not refresh the SWF file like it does with JPG, PNG and GIF files. This leads me to believe that people int he general public are not always seeing the most recent SWF from my site.

    My question is if there is a setting I could place in the actionscript or the embed/object HTML code that would specify whether or not to chache the SWF.

    Thanks for helping.

    -Mike

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Something like... on the url linking to your banner...

    ...yourbanner.swf?r=' + Math.round(Math.random() * 99999) + '...

  3. #3
    Member
    Join Date
    May 2005
    Posts
    31

    Help with refreshing website code

    I tried pluging your code into the movie I have for detecting screen size, but it's not updating any ideas on what's wrong?
    Attached Files Attached Files
    Hellasweet

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