Refreshing a page

Refreshing a page

Post by Dary » Thu, 15 Oct 2009 06:57:47


Hope this is the correct newsgroup for this kind of question.

I have a web page that doesn't change very much, but when it does I want to
make sure the user sees the change without them having to hit their Refresh
button on their web browser. I know of methods to refresh automatically
every so many seconds, and ways not to cache at all, but I don't want to do
that.

How does a browser know when to display a page from the cache versus getting
a newer version from the server? I would think that the browser would
attempt to see if a newer version is available on the server and if it is
then it would download the page from the server instead of using the cache,
but this doesn't appear to be the case. Is there some trick to make sure a
newer page is displayed instead of the cache? TIA

Daryl