diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index d2019465e..21a69c0e2 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -834,12 +834,11 @@ class CakeResponse { if ($public) { $this->_cacheDirectives['public'] = true; unset($this->_cacheDirectives['private']); - $this->sharedMaxAge($time); } else { $this->_cacheDirectives['private'] = true; unset($this->_cacheDirectives['public']); - $this->maxAge($time); } + $this->maxAge($time); if (!$time) { $this->_setCacheControl(); }