From 1c2b0423cd2c692f2596b60d7fb3645b72f5d0d4 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 13 Nov 2014 01:22:53 +0100 Subject: reenable http 304 --- itjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itjs.php b/itjs.php index 37028a5..6c8113d 100644 --- a/itjs.php +++ b/itjs.php @@ -25,7 +25,7 @@ if (EDC('slow' . it::match('\.(\w+)$', $_SERVER['PHP_SELF']))) sleep(10); $crc = $_REQUEST['c'] ?: $_REQUEST['s']; -if (false && $crc != "-" && !$_SERVER['HTTP_CACHE_CONTROL'] && $_SERVER['HTTP_IF_NONE_MATCH'] && !it::is_devel() && !$_REQUEST['retry']) +if ($crc != "-" && !$_SERVER['HTTP_CACHE_CONTROL'] && $_SERVER['HTTP_IF_NONE_MATCH'] && !it::is_devel() && !$_REQUEST['retry']) { header("HTTP/1.0 304 Not Modified"); # client should always keep the component that fits the page it has exit; -- cgit v1.2.3