note 49589 deleted from function.ob-start by cmb
| From: | cmb@php.net | Date: | Mon, 21 Jan 2019 15:30:00 +0000 |
| Subject: | note 49589 deleted from function.ob-start by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210097@lists.php.net to get a copy of this message | ||
Note Submitter: FB
----
I've noticed a bug with MSIE for non cached contents if your page is less than 4096 octets :
you have to refresh the page each time to view its content !
Here is the solution to prevent this stupid behaviour of MSIE : just insert this code at the top of
your scripts :
function ob_callback($buffer)
{
return $buffer . str_repeat(' ', max(0, 4097 - strlen($buffer)));
}
ob_start('ob_callback');