Fix for CakeResponse::sharable() header to include private caches

This commit is contained in:
Costa Caruso 2014-07-02 17:34:09 -04:00
parent 2c53bc8a1b
commit 1164c0bcad

View file

@ -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();
}