The problem background
When a new project is deployed to a new server, colleagues can run on Windows without any problems, but when migrating to a Liinux server, they find the following error.
chrome prompt: ERR_CONTENT_DECODING_FAILED
as follows:
Screening method
Check whether the nginx.conf of Nginx opens gzip; if it opens gzip, close it and reload to check whether the zlib.output_compression
is open; if it is not opened, use zlib.output_compression = On
The solution
In the php.ini configuration file, the following configuration is found to be off. Open it and restart PHP-FPM
; http://php.net/zlib.output-compression
zlib.output_compression = On
Reference links:
https://stackoverflow.com/questions/14039804/error-330-neterr-content-decoding-failed