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

Slava Bizyayev mod_gzip@lists.over.net
Fri, 6 Dec 2002 21:15:22 -0600


Sorry for the response delay, I was out of town.

1. There are no secrets in open source. You can take the source from CPAN
and use it as you wish.

2. I was happy to learn that you've already found the source of "wrong"
behavior of M$IE in your case.

3. I would separate the discussion about caching capabilities of local
browsers from the proxies' issues, even to control them (from the side of
HTTP server) we use some common HTTP headers.

Regards,
Slava

----- Original Message -----
From: "Jordan Russell" <jr-list-mod_gzip@quo.to>
To: <mod_gzip@lists.over.net>
Sent: Friday, December 06, 2002 3:28 PM
Subject: Re: [Mod_gzip] "mod_gzip_send_vary=Yes" disables caching on IE?
(1.3.26.1a)


> "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
>
> _______________________________________________
> mod_gzip mailing list
> mod_gzip@lists.over.net
> http://lists.over.net/mailman/listinfo/mod_gzip
>