我在Ubuntu 10.04LTS上使用SSL运行Nginx.当我检查证书时,Chrome给了我这个恼人的警告:
The connection is not compressed.
在响应中它看起来像是被发送gzip压缩:
Cache-Control:no-store,no-cache,must-revalidate,post-check=0,pre-check=0
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/html; charset=utf-8
Date:Sun,12 Feb 2012 09:00:38 GMT
Expires:Thu,19 Nov 1981 08:52:00 GMT
Pragma:no-cache
Server:Nginx/1.0.5
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Powered-By:PHP/5.3.6-13ubuntu3.3`
最佳答案
连接未压缩.与ssl压缩有关,而不是gzip.由于您响应gzip压缩,因此无需在ssl级别启用压缩.
另见:http://www.belshe.com/2010/11/18/ssl-compression-and-you/