mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-09 20:38:45 -05:00
Add invalidate option to force customcss.php to make HTTP request
This commit is contained in:
@@ -18,7 +18,7 @@ $timenow = time();
|
||||
$expiration = ($lastmodified ? $lastmodified : $timenow) + 3600;
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s T', $expiration));
|
||||
|
||||
if ($lastmodified && (($timenow - $lastmodified) < 3600)) {
|
||||
if (empty($_REQUEST['invalidate']) && ($expiration < $timenow)) {
|
||||
// Don't check for modifications more than once an hour.
|
||||
readfile($cssfile);
|
||||
die();
|
||||
|
||||
Reference in New Issue
Block a user