Gzip html文件显示chrome中的怪异字符

时间:2012-03-08 03:01:45

标签: google-chrome gzip

在我的php输出上使用gzip,就像这样

if( isset($compression['html']) && $compression['html'] == TRUE)
{
ob_start("ob_gzhandler");   
header("cache-control: must-revalidate");
header("expires: ".gmdate('D, d M Y H:i:s', time() + $compression['expire'])." GMT");
}

生成错误显示在下图中。它在FF和Safari中工作正常,但在chrome中却没有。知道怎么解决吗?

这是我得到的标题

Request URL:http://www:8888/formandsystem/gzo/de/dashboard
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8,de;q=0.6
Cache-Control:max-age=0
Connection:keep-alive
Cookie:ci_session=kyK5%2BhpX3N6dE7v9IoZtDzNRWT8rheDQATYZ7ztAoaAhbubmwfk2eScdjoZl0Bzwfi89YSPmwERE6NZ24t%2BCCgq4ImtYsJl12Fv%2B2GmmmA%2FPiOlxULO7cBx%2B%2BMFzbLtENeENHjBc16Oxg456Nykd6AGVUe1Kjc3u0c44xyOMVB1ZVrbBXEeujoLlaxUsDl2VJE8BvkqhqvD6DjgblNnKuTT1IvJ2VONduY2tqSk0Ldo6agsdEm0hIpILjTAEGSOqPETkXHA%2FWOGR1rH0f2M4C7ARhg14Vw%2BETIuMy5I4E14OU9FZAMZBmgXj%2FlbwG4v7Pfpq3vGCGF9LJHbtyUy9JBaucjz4s34jE36XLC3Mb2f5NNHhoTjAuLlpO%2FLKrYEutjxaXjMxId4BBWQEbIaKVFaWU5f6HZ671X2lTucUXE%2BHcyjxeGXa10bYygICJu%2BfcCU54k9LJoRB%2BCPR4SIdKQ%3D%3D
Host:www:8888
Referer:http://www:8888/formandsystem/gzo/de/dashboard
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11
Response Headersview source
Cache-Control:no-cache, must-revalidate
Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:1855
Content-Type:text/html;charset=utf-8
Date:Fri, 09 Mar 2012 00:07:29 GMT
Expires:Fri, 09 Mar 2012 01:07:29 GMT
Keep-Alive:timeout=15, max=100
Pragma:no-cache
Server:Apache
Vary:Accept-Encoding
X-Powered-By:PHP/5.2.13

由于

Error Message

0 个答案:

没有答案