[Mod_gzip] "mod_gzip_send_vary=Yes" disables caching on IE? (1.3.26.1a)

Jordan Russell mod_gzip@lists.over.net
Fri, 6 Dec 2002 15:28:09 -0600


"Slava Bizyayev" wrote:
>  I was lucky to demonstrate that Vary works fine (with M$IE)
> even when you need to cache content locally.

Hmm.. What's your secret? In my tests with IE 5.0 and IE 6.0SP1 (don't have
5.5 to test), using "mod_gzip_send_vary=Yes" seems to disable local caching
totally; IE wants to reload the page every time.

Here's what IE 6 sends when I request /z.htm, a static HTML file:

 --> C04 --> S05 ==== (31) Request <GET /z.htm HTTP/1.1>
 --> C04 --> S05 GET /z.htm HTTP/1.1
 --> C04 --> S05 Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-excel, application/msword, */*
 --> C04 --> S05 Accept-Language: en-us
 --> C04 --> S05 Accept-Encoding: gzip, deflate
 --> C04 --> S05 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.0)
 --> C04 --> S05 Host: news.jrsoftware.org
 --> C04 --> S05 Connection: Keep-Alive
 --> C04 --> S05 ==== Body 0 bytes

And here's the response:

 <-- C04 <-- S05 ==== (31) Response 200 to <GET /z.htm HTTP/1.1>
 <-- C04 <-- S05 HTTP/1.1 200 OK
 <-- C04 <-- S05 Date: Fri, 06 Dec 2002 21:19:31 GMT
 <-- C04 <-- S05 Server: Apache/1.3.27 (Unix) PHP/4.2.3 mod_gzip/1.3.26.1a
 <-- C04 <-- S05 Vary: Accept-Encoding
 <-- C04 <-- S05 Last-Modified: Fri, 06 Dec 2002 07:09:56 GMT
 <-- C04 <-- S05 ETag: "830043-18-3df04d44"
 <-- C04 <-- S05 Accept-Ranges: bytes
 <-- C04 <-- S05 Content-Length: 24
 <-- C04 <-- S05 Keep-Alive: timeout=15, max=100
 <-- C04 <-- S05 Connection: Keep-Alive
 <-- C04 <-- S05 Content-Type: text/html
 <-- C04 <-- S05 ==== Body 24 bytes

Now if I click a link on the page, then click Back, IE reloads the page from
scratch:

 --> C04 --> S05 ==== (109) Request <GET /z.htm HTTP/1.1>
 --> C04 --> S05 GET /z.htm HTTP/1.1
 --> C04 --> S05 Accept: */*
 --> C04 --> S05 Accept-Language: en-us
 --> C04 --> S05 Accept-Encoding: gzip, deflate
 --> C04 --> S05 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.0)
 --> C04 --> S05 Host: news.jrsoftware.org
 --> C04 --> S05 Connection: Keep-Alive
 --> C04 --> S05 ==== Body 0 bytes

 <-- C04 <-- S05 ==== (109) Response 200 to <GET /z.htm HTTP/1.1>
 <-- C04 <-- S05 HTTP/1.1 200 OK
 <-- C04 <-- S05 Date: Fri, 06 Dec 2002 21:20:50 GMT
 <-- C04 <-- S05 Server: Apache/1.3.27 (Unix) PHP/4.2.3 mod_gzip/1.3.26.1a
 <-- C04 <-- S05 Vary: Accept-Encoding
 <-- C04 <-- S05 Last-Modified: Fri, 06 Dec 2002 07:09:56 GMT
 <-- C04 <-- S05 ETag: "830043-18-3df04d44"
 <-- C04 <-- S05 Accept-Ranges: bytes
 <-- C04 <-- S05 Content-Length: 24
 <-- C04 <-- S05 Keep-Alive: timeout=15, max=99
 <-- C04 <-- S05 Connection: Keep-Alive
 <-- C04 <-- S05 Content-Type: text/html
 <-- C04 <-- S05 ==== Body 24 bytes


Jordan Russell