isDebugCall(); } /** * Determine whether or not to send debug version * * @return boolean */ protected function isDebugCall() { return array_key_exists('debug', $_GET); } /** * Send actual output to browser * * @param string $content - the body of the response * @param string $mimeType - the content type * @param int $lastModified - the last modified date * @return void */ protected function sendFinalOutput($content, $mimeType, $lastModified) { //This GZIPs the CSS for transmission to the user //making file size smaller and transfer rate quicker ob_start("ob_gzhandler"); $expires = $lastModified + 691200; $lastModifiedDate = gmdate('D, d M Y H:i:s', $lastModified); $expiresDate = gmdate('D, d M Y H:i:s', $expires); header("Content-Type: {$mimeType}; charset=utf8"); header("Cache-control: public, max-age=691200, must-revalidate"); header("Last-Modified: {$lastModifiedDate} GMT"); header("Expires: {$expiresDate} 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); } }