[Mod_gzip] "mod_gzip_send_vary=Yes" disables caching on IE?
(1.3.26.1a)
Robert Collins
mod_gzip@lists.over.net
08 Dec 2002 14:22:23 +1100
--=-Wndb8VxS+mbA2XwvLDLv
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Sun, 2002-12-08 at 14:06, Jordan Russell wrote:
> "Slava Bizyayev" wrote:
> But then, as usual, if I add in gzip encoding, IE caches the page just fi=
ne:
>=20
> header("Content-Encoding: gzip");
> header("Vary: Content-Encoding");
> header("Expires: Mon, 08 Dec 2003 00:00:00 GMT");
> echo gzencode("Hi");
This is plain *wrong*. Vary refers to the *request headers* not the
*response headers*.
IE 6.0 seems very buggy in this case to me.
Having said that, a better test case for you would be
header("Content-Encoding: gzip");
header("Vary: Accept-Encoding");
header("Expires: Mon, 08 Dec 2003 00:00:00 GMT");
Which should cache just fine in any http/1.1 browser.
Rob
--=-Wndb8VxS+mbA2XwvLDLv
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQA98rrvI5+kQ8LJcoIRAnOFAKCJ3dd6Ncp/UneMBB4llOfvG2OejwCdFAPV
J8q6wTQBN0dHK8/cfy1Z94k=
=56Vb
-----END PGP SIGNATURE-----
--=-Wndb8VxS+mbA2XwvLDLv--