is_debug_call(); } /** * Determine whether or not to send debug version * * @return boolean */ protected function is_debug_call() { return array_key_exists('debug', $_GET); } /** * Send actual output to browser * * @param string $content - the body of the response * @param string $mime_type - the content type * @param int $last_modified - the last modified date * @return void */ protected function send_final_output($content, $mime_type, $last_modified) { //This GZIPs the CSS for transmission to the user //making file size smaller and transfer rate quicker ob_start("ob_gzhandler"); $expires = $last_modified + 691200; $last_modified_date = gmdate('D, d M Y H:i:s', $last_modified); $expires_date = gmdate('D, d M Y H:i:s', $expires); header("Content-Type: {$mime_type}; charset=utf8"); header("Cache-control: public, max-age=691200, must-revalidate"); header("Last-Modified: {$last_modified_date} GMT"); header("Expires: {$expires_date} GMT"); echo $content; ob_end_flush(); } /** * Send a 304 Not Modified header * * @return void */ public static function send304() { header("status: 304 Not Modified", true, 304); } }