cron.php
changeset 542 5841df0ab575
parent 541 acb7e23b6ffa
child 672 08a7875258b4
equal deleted inserted replaced
541:acb7e23b6ffa 542:5841df0ab575
    40     }
    40     }
    41     setConfig("cron_lastrun_ivl_$interval", strval(time()));
    41     setConfig("cron_lastrun_ivl_$interval", strval(time()));
    42   }
    42   }
    43 }
    43 }
    44 
    44 
    45 header('Pragma: no-cache');
    45 $expiry_date = date('r', get_cron_next_run());
    46 header('Cache-control: no-cache');
    46 
    47 header('Expires: Thu, 1 Jan 1970 00:00:01 GMT');
    47 $etag = sha1($expiry_date);
       
    48   
       
    49 if ( isset($_SERVER['HTTP_IF_NONE_MATCH']) )
       
    50 {
       
    51   if ( "\"$etag\"" == $_SERVER['HTTP_IF_NONE_MATCH'] )
       
    52   {
       
    53     header('HTTP/1.1 304 Not Modified');
       
    54     exit();
       
    55   }
       
    56 }
       
    57 
       
    58 header("ETag: $etag");
       
    59 
       
    60 header('Expires: ' . $expiry_date);
    48 header('Content-type: image/gif');
    61 header('Content-type: image/gif');
    49 
    62 
    50 echo ENANO_GIF_SPACER;
    63 echo ENANO_GIF_SPACER;
    51 
    64 
    52 ?>
    65 ?>