youfang
V2EX  ›  问与答

开启 gzip 后报错 求解? net::ERR_CONTENT_DECODING_FAILED

  •  
  •   youfang · Mar 9, 2017 · 2964 views
    This topic created in 3351 days ago, the information mentioned may be changed or developed.

    服务端开启 gzip 后请求报错 net::ERR_CONTENT_DECODING_FAILED 是前端或是后端代码需要修改? 网上查到原因好像是内容没有 gzip 编码?

    1 replies    2017-03-09 18:12:24 +08:00
    alect
        1
    alect  
       Mar 9, 2017   ❤️ 1
    http 头声明文件已经 gzip 压缩,但是实际上并没有压缩,关掉这个功能,或者是 php.ini 里面开启 zlib.output_compression 试试看。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3185 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:28 · PVG 22:28 · LAX 07:28 · JFK 10:28
    ♥ Do have faith in what you're doing.