diff --git a/lib/Cake/Network/CakeResponse.php b/lib/Cake/Network/CakeResponse.php index 5fd1ac71b..b8aa9e643 100644 --- a/lib/Cake/Network/CakeResponse.php +++ b/lib/Cake/Network/CakeResponse.php @@ -855,7 +855,7 @@ class CakeResponse { } $this->maxAge($time); - if ($time === null) { + if ((int)$time === 0) { $this->_setCacheControl(); } return (bool)$public;