From 9553763ef0c3b46fc0c2851fccc09c4fd3854669 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 16 Aug 2007 14:52:03 +0000 Subject: support max-age --- itjs.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index 3055958..5c23b4a 100644 --- a/itjs.php +++ b/itjs.php @@ -40,6 +40,8 @@ else if (!ereg('\.html$', $file)) if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH']) { + header("Cache-Control: max-age=900"); + if ($_REQUEST['boot']) $data = preg_replace('/([\xa0-\xff])/e', 'sprintf("\\u%04x", ord("\\1"))', $data) . "window.it_boot_init();"; -- cgit v1.2.3