...or if the asset SWF's to load are specified in an XML file, just
append the name with your own manual timestamp everytime you update the
asset - this saves busting the cache every time, e.g.
<node label="work" file="work.swf">
<node label="marketing" file="marketing.swf?updated=20070905" />
<node label="public relations"
file="publicrelations.swf?updated=20070905" />
<node label="advertising" file="advertising.swf?updated=20070905" />
<node label="design" file="design.swf?updated=20070905" />
</node>
Bachir El Khoury wrote:
To force the download of the swf, u can use a cache buster technique
below:
loader.load(new UrlRequest("somthing/mySwf.swf?cb="+new
Date().getTime()));
Adding th time at the end of the URL will trick the player to think
that it's a new URL each time forcing if to redownload the file.
On 06/07/2009, at 5:36 AM, Gil Birman <[email protected]> wrote:
* (I am not sure of this one) But I think that the assets loaded
inside an
app at runtime are not cached so they will take the same time the
next time
you load them unlike the embed assets.
The web browser WILL cache SWF's loaded at runtime (from the same
domain). This can pose a problem when you upload a newer version of
the SWF to your server because the user may have the old version
cached. One solution is something like this in the .htaccess file:
# CACHE AGES IN 24 HOURS for specified file types (86400)
# CACHE AGES IN 7 DAYS for specified file types (604800)
<FilesMatch "\.(pdf|swf|js|css|jpg|jpgeg|gif|png|swc|xml|txt)$">
Header set Cache-Control "max-age=86400"
</FilesMatch>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org