From 1164c0bcadc80122a462c1cd9a43207d5c662b47 Mon Sep 17 00:00:00 2001 From: Costa Caruso Date: Wed, 2 Jul 2014 17:34:09 -0400 Subject: [PATCH] Fix for CakeResponse::sharable() header to include private caches --- lib/Cake/Network/CakeResponse.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); }