How to remove flash cache on a web site periodically
Posted
by user320166
on Stack Overflow
See other posts from Stack Overflow
or by user320166
Published on 2010-04-20T05:23:09Z
Indexed on
2010/04/20
5:33 UTC
Read the original article
Hit count: 269
I'm using a flash rotating banner in my website which takes images and descriptions from an XML file.
I do changes to my XML very often... but in my local machine, the banner takes a day or two to get updated.
Although I can clear my local machine's cache, the problem still remains for other users who visit my web page..
is there a programmatic way in flash or in html to overcome this problem ? Maybe a server configuration? Please help me with this..
PS: below code works fine, but it clears out the cache completely... i need to clear XMl cache after a specific time period.. please help.
var timestamp:Date = new Date();
xmlData.load("/flash/images.xml?cachebuster=" + timestamp.getTime());
© Stack Overflow or respective owner