Skip to content
Permalink
Browse files

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

  • Loading branch information...
Costa Caruso
Costa Caruso committed Jul 2, 2014
1 parent 2c53bc8 commit 1164c0bcadc80122a462c1cd9a43207d5c662b47
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Cake/Network/CakeResponse.php
@@ -834,12 +834,11 @@ public function sharable($public = null, $time = null) {
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();
}

0 comments on commit 1164c0b

Please sign in to comment.
You can’t perform that action at this time.