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
- Author was Featured
- Sold between 50 000 and 100 000 dollars
- Author had a Free File of the Month
- Bought between 1 and 9 items
- Exclusive Author
- Europe
- Has been a member for 3-4 years
- Referred between 10 and 49 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
Have you tried appending random number to xml or swf url’s?
Nope. But that might help!
Isn’t there a neater way?
- Microlancer Beta Tester
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Sold between 100 000 and 250 000 dollars
KamilWaheed said
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
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 4-5 years
- Item was Featured
- Referred between 50 and 99 users
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.
- Sold between 100 000 and 250 000 dollars
- Author had a File in an Envato Bundle
- Has been a member for 4-5 years
- Author had a Free File of the Month
- Won a Competition
- Author was Featured
- Item was Featured
- Bought between 10 and 49 items
best way is to append timestamp (last modified) of the xml file
however, it requires little server side scripting (like php)
- Attended a Community Meetup
- Community Moderator
- Has been a member for 5-6 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
I usually add date stamp or random number to all xml requests, thing is its all already cached now…
MSFX said
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”
- Attended a Community Meetup
- Community Moderator
- Has been a member for 5-6 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
theflyingtinman said
MSFX said
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?
@ All… thanks for your help…
@ZoomIt… the link that you provided… this Tag from it worked 
