Hi y'all

I'm using the following script to send headers preventing browsers from
caching my page (since the page is supposed to be dynamic). But it seems as
none of the headers work. The only thing working right now is setting your
browser to never cache pages (and I think that's a bit too much to ask from
every person logging on). So, can anybody help me?

function no_cache() {
  global $SERVER_PROTOCOL;
  if ($SERVER_PROTOCOL == 'HTTP/1.0') {
    header("Pragma: no-cache"); // HTTP/1.0
  } else {
    header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
  }
}

------------------------
Samba Sidibeh
Systemutvecklare
SYSteam Udac AB
Storgatan 19, Box 174, 751 04 Uppsala SWEDEN
Tel direkt: 018-67 81 35
Tel vxl: 018-67 80 00  Fax: 018-51 66 00
Hemsida: www.systeam.se, www.udac.se
SYSteam Udac ingår i SYSteamkoncernen.

Reply via email to