From 263fe976a8f86d2d7190b0af467c5b2e71df4b6e Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Wed, 13 Feb 2013 14:31:15 -0700 Subject: [PATCH] One more customcss.php fix --- customcss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customcss.php b/customcss.php index 0dfd9862c..91c5ea2ba 100644 --- a/customcss.php +++ b/customcss.php @@ -18,14 +18,14 @@ $timenow = time(); $expiration = ($lastmodified ? $lastmodified : $timenow) + 3600; header('Expires: ' . gmdate('D, d M Y H:i:s T', $expiration)); -if (isset($_REQUEST['invalidate']) && $lastmodified && (($timenow - $lastmodified) < 3600)) { +if (!isset($_REQUEST['invalidate']) && $lastmodified && (($timenow - $lastmodified) < 3600)) { // Don't check for modifications more than once an hour. readfile($cssfile); die(); } $curl = curl_init($customcssuri); -if ($lastmodified && empty($_REQUEST['invalidate'])) { +if ($lastmodified && !isset($_REQUEST['invalidate'])) { curl_setopt($curl, CURLOPT_HTTPHEADER, array( 'If-Modified-Since: ' . gmdate('D, d M Y H:i:s T', $lastmodified) ));