XP IE SP2 Gzip Etag Header Bug

  • Thread starter Thread starter lynch
  • Start date Start date
L

lynch

Hi,

If page is compressed with gzip, IE is not sending Etag (If-None-Match)
header.
but Firefox is working well..

How can fix this problem?

Example php code:
<?php
ob_start('ob_gzhandler');
header('ETag: '.time());
$array = apache_request_headers();
foreach($array as $key=>$value)
{
echo "$key : $value".'<br>';
}
?>

Example url:
http://64.132.144.166/~gomoste/etag_test.php

Please test Firefox and IE, will you see.

My system is:
XP PRO SP2
IE 6.0.2900.2180
 
lynch said:
Hi,

If page is compressed with gzip, IE is not sending Etag (If-None-Match) header.


There may be another explanation depending on what other
headers are being sent. E.g. if the server is also sending

Vary: *

then it has been observed that IE considers this grounds to make
a file non-cacheable. If you are only looking at the server side logs
I think that this would explain your symptom.


"Steven of Bielik" reported a workaround for Apache server users
here:

<headers from my reply>
Subject: Re: IE6 not using cache on one site
Date: Fri, 23 Jan 2004 17:09:15 -0500
</headers from my reply>

I'm composing this offline so you will have to search for that
Message-ID in Google Groups. (Or link to it by finding this
message in Google Groups.)


PS (I only noticed your link after I had written the above.)
Your host is indeed an Apache server and is sending:

Vary: Accept-Encoding


Try using Steven's workaround.


HTH

Robert Aldwinckle
---
 
Back
Top