I had the same problem and your answer was very helpful.
Search line below in your php.ini file:
zlib.output_compression = On
change for:
zlib.output_compression = Off
However I could not figure out where to locate the php.ini file or the zlib.
I took a few days off and I looked over the above from a new perspective. My Hosting provider is "Hostinger" http://api.hostinger.in/redir/21246281 they use the New Control Panel and you will access PHP Configuration here:
ps for cpanel users I will give an update if needed.
Here is an example of a php configure page on the Hostinger panel:
PHP Configuration
PHP version
PHP 5.2
PHP 5.3
PHP 5.4
PHP 5.5
PHP 5.6
PHP 7.0
Choose which PHP version you would like enabled for your account.
Zlib Compression
Enabled
Disabled
Whether to transparently compress pages. If this option is set to "On" in php.ini, pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. In runtime, it can be set only before sending any output.
Display Errors
Enabled
/ Disabled
This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user.
Max Input Vars
Here is an example of the php configure admin panel page just make the change. Hope this was helpuful to someone.
[email protected]