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));
}
}
}