mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix for CakeResponse::sharable() header to include private caches
This commit is contained in:
parent
2c53bc8a1b
commit
1164c0bcad
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue