Internet explorer 使用NGINX服务器,internetexplorer/Google搜索控制台显示出乱七八糟的内容

Internet explorer 使用NGINX服务器,internetexplorer/Google搜索控制台显示出乱七八糟的内容,internet-explorer,nginx,mediawiki,Internet Explorer,Nginx,Mediawiki,我正在运行一个带有短URL配置的Mediawiki(example.com/Page\u Title) Chrome和Firefox呈现的很好,但为什么它在IE或谷歌搜索控制台上显示为胡言乱语呢�~����=�r۶����� 等等运行test.html或.php看起来不错,只有重写的Mediawiki页面显示出乱七八糟的内容 HTTP响应头中的内容类型和字符集似乎是正确的: Response Headers cache-control: private, must-revalidate, max

我正在运行一个带有短URL配置的Mediawiki(example.com/Page\u Title)

Chrome和Firefox呈现的很好,但为什么它在IE或谷歌搜索控制台上显示为胡言乱语呢�~����=�r۶����� 等等运行test.html或.php看起来不错,只有重写的Mediawiki页面显示出乱七八糟的内容

HTTP响应头中的内容类型和字符集似乎是正确的:

Response Headers
cache-control: private, must-revalidate, max-age=0
content-encoding: gzip, gzip
content-language: en
content-type: text/html; charset=UTF-8
date: Mon, 23 May 2016 11:32:39 GMT
expires: Thu, 01 Jan 1970 00:00:00 GMT
last-modified: Mon, 23 May 2016 11:02:34 GMT
server: nginx
vary: Accept-Encoding, Cookie, Accept-Encoding
x-content-type-options: nosniff, nosniff
x-frame-options: SAMEORIGIN
x-powered-by: HHVM/3.11.1
x-ua-compatible: IE=Edge, IE=Edge
x-xss-protection: 1; mode=block

问题似乎来自多次尝试gzip内容,因此http头中出现了双gzip

content-encoding: gzip, gzip
在nginx config中添加此参数解决了此问题

fastcgi_param   HTTP_ACCEPT_ENCODING "";

问题似乎来自多次尝试gzip内容,因此http头中出现了双gzip

content-encoding: gzip, gzip
在nginx config中添加此参数解决了此问题

fastcgi_param   HTTP_ACCEPT_ENCODING "";