Add invalidate option to force customcss.php to make HTTP request

This commit is contained in:
Cathy J. Fitzpatrick
2013-02-13 14:06:37 -07:00
parent 0121e879b2
commit 002addda88

View File

@@ -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();