Each time I publish new content on my flash page, the computers that had opened that page earlier (with old content) remain with the same old content, until their histories are removed, or the page is refreshed with SHIFT+reload.
How can I build I page so this does not happen?
thanks a lot.
salu2
There are a few ways of making sure your files are not taken from user’s cache. You can do it from PH by setting a expiration date but you can also do it from ActionScript.
The simpliest way is to add some strings to the file url after the “?” mark to get for example:
It will make sure that the url is different so it won’t get the file from cache.
The best way is to get a current datestamp.
You can also specify a site version number and update it when you upload new files and then add the version number to the url.
This will allow you to make sure that the files are loaded from the server when you update your site but when a user enters the page again and there were no changes the file will load from cache.
this is the code I use in my projects: