diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-08-27 16:15:01 -0700 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-27 16:15:01 -0700 | 
| commit | 8d2cd12c58508c58520d4df2875a3f7974343d8f (patch) | |
| tree | bc2c99a5f493d365d0306c855878bad319cc664f /modules/gallery/controllers/combined.php | |
| parent | e0e430bd84d8c82eb425c0bc828dae2b9c0d86be (diff) | |
| parent | bfc64685e4ae4bbd2c0308e9520194215ab51469 (diff) | |
Merge branch 'master' of git@github.com:talmdal/gallery3 into talmdal_branch
Diffstat (limited to 'modules/gallery/controllers/combined.php')
| -rw-r--r-- | modules/gallery/controllers/combined.php | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/modules/gallery/controllers/combined.php b/modules/gallery/controllers/combined.php index 9a790fdf..c1f42bfe 100644 --- a/modules/gallery/controllers/combined.php +++ b/modules/gallery/controllers/combined.php @@ -42,22 +42,23 @@ class Combined_Controller extends Controller {    private function _emit($type, $key) {      $input = Input::instance(); +    // We don't need to save the session for this request +    Session::abort_save(); +      // Our data is immutable, so if they already have a copy then it needs no updating.      if ($input->server("HTTP_IF_MODIFIED_SINCE")) {        header('HTTP/1.0 304 Not Modified');        header("Expires: Tue, 19 Jan 2038 00:00:00 GMT");        header("Cache-Control: max-age=2678400");        header('Pragma: public'); -      return; +      Kohana::close_buffers(false); +      return "";      }      if (empty($key)) {        Kohana::show_404();      } -    // We don't need to save the session for this request -    Session::abort_save(); -      $cache = Cache::instance();      $use_gzip = function_exists("gzencode") &&        stripos($input->server("HTTP_ACCEPT_ENCODING"), "gzip") !== false && | 
