Posted 30 November 2008 - 10:20 AM
There are a couple of ways to handle that. First, you don't allow th ebrowser to cache the page using the No-cache option inside the metadata tag. This doesn't always work though since browsers tend to handle the tag differently. One could also use the Expires switch so the page automatically checks for a new version each time the page is loaded. One could also use the Reload switch, but this one tends to make users a little angry, and uses bandwidth. This is useful for updating an entire page, but you really only need the page to be fresh at any given time it loads. Nobody wants to sit through a page that is constantly reloading. Finally, you could use AJAX to just reload the parts that you need, which greatly decreases bandwidth, and is generally the right way to make sure that your content is up to date.