How to disable Nginx double gzip encoding when fastcgi backend occasionally serves gzipped with content-encoding?

浪尽此生 提交于 2019-11-30 23:18:51

Somewhere in nginx.conf where it applies (there should be a fastcgi_params file somewhere) :

fastcgi_param  HTTP_ACCEPT_ENCODING      "";

This will disable the encoding from the backend.

I hope that still Nginx will serve encoded content after this. (I am not sure)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!