I am having trouble with cached pages, after reading a tutorial on the subject I discovered that by inserting the headers below, pages will automatically refresh themselves with each visit to the page, only trouble is I keep getting the following error.
"Cannot modify header information - headers already sent by..."
Here is the code for the page, also see link below:-
<html>
<head>
<?
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<title>Test</title>
</head>
<body>
TEST
</body>
</html>
http://www.whosyadaddy.info/test.php
I read somewhere that this might be caused by php not being configured properly. Any suggestions?
PS This site is hosted with a web hosting company so I am unable to make any php configuration changes myself. However I can email them with any suggestions for a fix.
If it helps php version is:- 4.3.2
and apache version is:- 1.3.28 (unix)
Many thanks
Ant