On Tue, Feb 26, 2008 at 1:41 AM, David Cassidy <[EMAIL PROTECTED]> wrote:
> How are you testing that this is working correctly ?
>
>  Are you using wget with the --header="Accept-Encoding: gzip"
>  to test it ?
>

On the IE6 side I installed IE HttpAnalyzer to inspect the request and
responses between IE and Apache.

With wget Apache doesn't send the javascript back using chunking, just
simply "Content-Encoding: gzip", as below:

Connecting to rhodium.homemaster.cn|192.168.0.2|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Tue, 26 Feb 2008 02:15:17 GMT
  Server: Apache/2.2.6 (Debian) mod_python/3.3.1 Python/2.4.4
PHP/5.2.4-2+b1 with Suhosin-Patch
  Last-Modified: Tue, 12 Feb 2008 07:34:35 GMT
  Accept-Ranges: bytes
  Cache-Control: max-age=315360000
  Expires: Fri, 23 Feb 2018 02:15:17 GMT
  Vary: Accept-Encoding
  Content-Encoding: gzip
  Connection: close
  Content-Type: application/x-javascript
Length: unspecified [application/x-javascript]

I guess that is due to wget not supporting content negotiation.

In IE6, the response header send back by Apache is follows:

(Status-Line):HTTP/1.1 200 OK
Date:Tue, 26 Feb 2008 02:16:25 GMT
Server:Apache/2.2.6 (Debian) mod_python/3.3.1 Python/2.4.4
PHP/5.2.4-2+b1 with Suhosin-Patch
Last-Modified:Tue, 12 Feb 2008 07:34:35 GMT
Accept-Ranges:bytes
Cache-Control:max-age=315360000
Expires:Fri, 23 Feb 2018 02:16:25 GMT
Vary:Accept-Encoding
----------------:----
Keep-Alive:timeout=15, max=97
Connection:Keep-Alive
Transfer-Encoding:chunked
Content-Type:application/x-javascript

It uses Transfer-Encoding:chunked instead of Content-Type:gzip. And
the script doesn't gets cached despite a far-future expires header.

-- 
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn

Reply via email to