get("{$key}_gz"); } if (empty($content)) { $content = $cache->get($key); } if (empty($content)) { Kohana::show_404(); } if (strpos($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip") !== false) { header("Content-Encoding: gzip"); header("Cache-Control: public"); } header("Content-Type: text/javascript; charset=UTF-8"); header("Expires: Tue, 19 Jan 2038 00:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s T", time())); Kohana::close_buffers(false); print $content; } }