httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuan HOng" <>
Subject Re: [users@httpd] Problem with mod_deflate and IE6 javascript caching
Date Tue, 26 Feb 2008 02:18:22 GMT
On Tue, Feb 26, 2008 at 1:41 AM, David Cassidy <> 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||: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
Expires:Fri, 23 Feb 2018 02:16:25 GMT
Keep-Alive:timeout=15, max=97

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

View raw message