mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-08-20 10:02:05 -05:00
One more customcss.php fix
This commit is contained in:
@@ -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)
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user