2
/********************************************************
5
(C)Ryo Chijiiwa <Ryo@IlohaMail.org> 2002
7
This file is part of IlohaMail, and released under GPL.
8
See COPYING, or http://www.fsf.org/copyleft/gpl.html
11
Sets HTTP headers to disable cache if using non-Netscape browser
13
********************************************************/
14
if (isset($HTTP_USER_AGENT)) $ua = $HTTP_USER_AGENT;
15
else if (isset($_SERVER)) $ua = $_SERVER["HTTP_USER_AGENT"];
17
$isns = stristr($ua, "Mozilla") && (!(stristr($ua, "compatible"))) && (!(stristr($ua, "Safari")));
19
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
20
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
21
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
22
header("Cache-Control: post-check=0, pre-check=0", false);
23
header("Pragma: no-cache"); // HTTP/1.0
b'\\ No newline at end of file'