From d90e30c37881d4e715b2c798046830242e382d1c Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 28 Jun 2009 17:07:12 -0700 Subject: Rename the combined javascript controller from javascript/combined to combined/javascript. --- modules/gallery/controllers/combined.php | 62 ++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 modules/gallery/controllers/combined.php (limited to 'modules/gallery/controllers/combined.php') diff --git a/modules/gallery/controllers/combined.php b/modules/gallery/controllers/combined.php new file mode 100644 index 00000000..510482db --- /dev/null +++ b/modules/gallery/controllers/combined.php @@ -0,0 +1,62 @@ +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; + } +} + -- cgit v1.2.3