diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index 8d0abaebd..375686086 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -864,13 +864,10 @@ class Controller extends Object { * * @return void * @link http://book.cakephp.org/view/988/disableCache + * @deprecated */ public function disableCache() { - header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); - header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - header("Cache-Control: no-store, no-cache, must-revalidate"); - header("Cache-Control: post-check=0, pre-check=0", false); - header("Pragma: no-cache"); + $this->response->disableCache(); } /**