Groups | Blog | Home
all groups > flash (macromedia) > july 2005 >

flash (macromedia) : SWFs not refreshing


caskater
7/12/2005 10:04:35 PM
On several projects I have noticed that if I have a swf file that pulls in
information from other files, it doesn't always check the latest version of the
file against the cache. Even in browsers such as Firefox where I can force the
refresh (shift-reload) it still does not seem to grab the latest file off the
server, using the cache instead. The only way around this is to constantly
delete the cache. Now, this is an issue as maintenance to the site is done by
updating the external files. How can I force the browser, maybe from the server
side, to always check for the latest files and not use the cache? Thanks.
urami_
7/13/2005 7:02:17 AM

[quoted text, click to view]

You can throw some random junk with the URL stuff that is usually ignore but the
browser will see it as a unique request and hence ignore the cache.
It apply to loading swf or vars as well as nested swf in html :

filename.swf?Flushcache=" +random(65000)

else you can always stamp the file with "time" so each file will never be
identical to another forcing browser to get new each session.

FILE.swf?" + new Date().getTime()

For example :

<PARAM NAME=movie VALUE="FILE.swf?" + new Date().getTime()">


Same apply if you load content into flash, to both, variables or swf files

loadVariables("url.txt?nocache="+random(65000), 0);

--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
AddThis Social Bookmark Button