From e9a35a080381a2a737f43e75fcd5489816076a10 Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Thu, 28 Jul 2011 09:27:43 -0300 Subject: [PATCH 1/2] Formatting to make code more readable --- details/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/details/index.php b/details/index.php index bea5074..2055cba 100644 --- a/details/index.php +++ b/details/index.php @@ -77,7 +77,9 @@ header('Last-modified: '.date(DATE_RFC2822, $lastupdate)); -if (array_key_exists('HTTP_IF_MODIFIED_SINCE', $_SERVER) && ($lastupdate <= strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']))) { +if (array_key_exists('HTTP_IF_MODIFIED_SINCE', $_SERVER) && + ($lastupdate <= strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE'])) +) { header('HTTP/1.0 304 Not Modified'); exit; } From 0f17e553c595ff80822afd1041c482e1fc318937 Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Thu, 28 Jul 2011 10:58:41 -0300 Subject: [PATCH 2/2] Serving jQuery over HTTP instead of HTTPS to help with caching and speed things up. --- details/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/details/index.php b/details/index.php index 2055cba..18dc7c1 100644 --- a/details/index.php +++ b/details/index.php @@ -103,7 +103,7 @@ } else { $SCRIPTS = array_merge($SCRIPTS, array( array('condition' => 'if IE', 'url' => assetURL('flot/excanvas.js')), - 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js', + 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js', assetURL('flot/jquery.flot.js'), assetURL('flot/jquery.flot.crosshair.js'), assetURL('flot/jquery.flot.selection.js'),