I know this thread is rather lengthy, and took a few turns along the way,
but I ran across this link the other day and thought it might be of use for
everyone on the list - it's an official explanation of how IE handlers
caching via headers. there's also a few links in it that are worth noting
as well...
http://support.microsoft.com/support/kb/articles/Q234/0/67.ASP
HTH
--Geoff
> -----Original Message-----
> From: Ime Smits [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 19, 2000 5:41 AM
> To: [EMAIL PROTECTED]
> Subject: [slightly OT] cache refusal problem with IE, http headers
>
>
> Hi,
>
> I tried to nail this problem down for over 6 hours now. I use GD.pm to
> dynamically generate images used in a dynamically generated
> Apache::ASP
> page. Each image is given a name which is unique (in fact: a
> md5 on the
> original name, width, height, color depth). Some of these
> images are used in
> a javascript onMouseOver. The images are send out to the browser via a
> script, with the unique id as $ENV{PATH_INFO}.
>
> Now the odd thing is, both IE's I tried (4.01 and 5.5) seem
> to /refuse/ to
> cache the image oppsed to all Netscape versions, which handle
> things like
> expected. After searching deja, I found out that more people had this
> problem, but I only read about javascript preloading and stuff. That's
> already been taken care off. If I take a copy of those images
> and let Apache
> handle the request directly from disk, everything is ok.
>
> So I started to get suspicious about headers. I thought maybe
> IE was choking
> on the session-id cookie from Apache::ASP, so I rewrote the
> Apache::ASP
> gateway to plain mod_perl. I messed around with headers, even read
> http://perl.apache.org/guide/correct_headers.html three
> times, but nothing
> fixed my problem so far.
>
> I know the problem is not really mod_perl related. I agree on
> the fact that
> this is probably a typical Microsoft inconsistancy. Maybe
> some of you have
> had the same problem.
>
> Below is a sample of the headers it returns. Any ideas?
> Anything that is
> communicated without me seeing it?
>
> Thanks,
>
> Ime
>
>
>
>
> [ime@nobel /tmp]$ wget -S
> http://192.168.31.1/mediaexporter.pl/ef6880b34b91e817f8c9973f0
e7efe10.png
--10:55:32--
http://192.168.31.1:80/mediaexporter.pl/ef6880b34b91e817f8c9973f0e7efe10.png
=> `ef6880b34b91e817f8c9973f0e7efe10.png.86'
Connecting to 192.168.31.1:80... connected!
HTTP request sent, awaiting response... 200 OK
2 Date: Tue, 19 Sep 2000 09:21:34 GMT
3 Server: Apache/1.3.12 (Unix) mod_perl/1.21_03
4 Expires: Thu, 19 Oct 2000 08:52:50 GMT
5 Last-Modified: Tue, 19 Sep 2000 09:20:46 GMT
6 Cache-Control: public
7 ETag: ef6880b34b91e817f8c9973f0e7efe10
8 Content-Length: 294
9 Connection: close
10 Content-Type: image/png
and here for the same image, but as a normal static file fron disk:
HTTP request sent, awaiting response... 200 OK
2 Date: Tue, 19 Sep 2000 09:22:50 GMT
3 Last-Modified: Tue, 19 Sep 2000 09:22:10 GMT
4 Server: Apache/1.3.9 (Unix) mod_perl/1.21_03
5 ETag: "477b1-147-39b3889d"
6 Accept-Ranges: bytes
7 Connection: close
8 Content-Length: 327
9 Content-Type: image/png