767 posts
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 1 000 and 5 000 dollars
outandouter says

Hi Folks,

I am working on a flash-based website for a local company.

We released the website one week ago. Today, I added a few new cool features to the website, and also updated a couple of things.

The thing is that the changes don’t reflect on the user’s computer if he has visited the website previously. He has to delete the cookies to see the updates.

When we post on facebook that our website has been updated to our followers, they are complaining that they can not see the updated the website.

How can I force the browser to load the latest website?

- Kamil Waheed

1676 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 more
Tean says

Have you tried appending random number to xml or swf url’s?

767 posts
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 1 000 and 5 000 dollars
outandouter says

Nope. But that might help!

Isn’t there a neater way?

1604 posts Building the Web.
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Has been a member for 4-5 years
+2 more
ZoomIt says

Nope. But that might help! Isn’t there a neater way?

You can try the no-cache meta tag – http://www.i18nguy.com/markup/metatags.html – but don’t think it will work :(

xml usually don’t gets updated

843 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Won a Competition
  • Sold between 100 000 and 250 000 dollars
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+2 more
marcfolio says

Random numbers is the only way I’ve been able to do it.

I used to have a javascript function that did it with swf object. I’ll see if I can find it.

1999 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Author had a Free File of the Month
  • Won a Competition
  • Bought between 10 and 49 items
+4 more
bitfade says

best way is to append timestamp (last modified) of the xml file
however, it requires little server side scripting (like php)

8194 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says

I usually add date stamp or random number to all xml requests, thing is its all already cached now…

2309 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 and 1 000 dollars
  • United States
theflyingtinman says

I usually add date stamp or random number to all xml requests, thing is its all already cached now…

It doesn’t matter if it is already cached, adding a random ‘cachebuster’ to url requests (swfs, xml files, images, php files, etc) will cause them to be reloaded.

One problem with that is the cahcebuster then breaks the URLs if you try to run from within Flash so you have to add it conditional on localConection.domain != ‘localhost’, or Capabilities.playerType != “External”

8194 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says


I usually add date stamp or random number to all xml requests, thing is its all already cached now…

It doesn’t matter if it is already cached, adding a random ‘cachebuster’ to url requests (swfs, xml files, images, php files, etc) will cause them to be reloaded.

One problem with that is the cahcebuster then breaks the URLs if you try to run from within Flash so you have to add it conditional on localConection.domain != ‘localhost’, or Capabilities.playerType != “External”

but the main swf is cached, they need to recache that which must be done out of Flash right?

767 posts
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 1 000 and 5 000 dollars
outandouter says

@ All… thanks for your help…

@ZoomIt… the link that you provided… this Tag from it worked :)

by
by
by
by
by
by