I have php generated pages that change every few minutes based on the underlying data. All is good until a user follows a link. When the user clicks the back button on their browser to return, the previously loaded version of the page is displayed. The browser is not reloading the page from the server.
In order to get the new content from the server, users must click reload.
I tried the normal meta tags, and outputting header() from php.
The behavior is the same in IE, FF and Chrome.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
Try setting these headers
This tells the browser not to cache the page and so it should reload when they hit back.