From 3b4aeabd9186666e025d3233f06f7458356bfc37 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 16 Nov 2015 14:00:23 +0100 Subject: make c= optional for far future expire --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itjs.class b/itjs.class index 92a1c58..c54abd3 100644 --- a/itjs.class +++ b/itjs.class @@ -218,7 +218,7 @@ function crcurl($url, $p = array()) } # $p['nocrc'] means no $_REQUEST['c'] is needed for far future expire -static function far_future_headers($p = []) +static function far_future_headers($p = array()) { $crc = $_REQUEST['c'] ?: $_REQUEST['s']; if ($crc != "-" && !$_SERVER['HTTP_CACHE_CONTROL'] && $_SERVER['HTTP_IF_NONE_MATCH'] && !it::is_devel() && !$_REQUEST['retry']) -- cgit v1.2.3