Voila une solution qu'on m'a proposé et qui marche, apparemment il s'agit d'un problème de serveur qui compresse les pages
Dans le fichier /lib/Cake/Network/CakeResponse.php à la ligne 485 il faut rajouter un return;
/**
* Calculates the correct Content-Length and sets it as a header in the response
* Will not set the value if already set or if the output is compressed.
*
* @return void
*/
protected function _setContentLength() {
return;
$shouldSetLength = !isset($this->_headers'Content-Length']) && !in_array($this->_status, range(301, 307));
if (isset($this->_headers'Content-Length']) && $this->_headers'Content-Length'] === false) {
unset($this->_headers'Content-Length']);
return;
}
if ($shouldSetLength && !$this->outputCompressed()) {
$offset = ob_get_level() ? ob_get_length() : 0;
if (ini_get('mbstring.func_overload') & 2 && function_exists('mb_strlen')) {
$this->length($offset + mb_strlen($this->_body, '8bit'));
} else {
$this->length($this->_headers'Content-Length'] = $offset + strlen($this->_body));
}
}
}