[Mod_gzip] "mod_gzip_send_vary=Yes" disables caching on IE? (1.3.26.1a)
Jordan Russell
mod_gzip@lists.over.net
Mon, 9 Dec 2002 03:16:09 -0600
"Slava Bizyayev" wrote:
> The response is coming back uncompressed. Expires instructs to cache this
> content for 30 minutes. It works fine on my machine. No new requests
during
> the next 30 minutes.
Hmm... Did you clear your IE cache before this test?
I thought Expires worked fine too, until I did that. The Expires setting
seemed to stay stuck in the IE cache after my first (successful) test. Doing
a Refresh on the page didn't help; I had to clear the cache to get it out.
It was then that IE would no longer cache the page until I removed the Vary
header or added gzip compression.
> So, it seems more safe to use "Vary: User-Agent,*" instead of just "Vary:
*"
> for uncompressed content even if there are no User-Agent features in your
> response...
In my tests just now (again with PHP), neither of these get cached for me
without gzip compression:
header("Vary: User-Agent,*");
header("Expires: Mon, 08 Dec 2003 00:00:00 GMT");
echo "Hi";
header("Vary: *");
header("Expires: Mon, 08 Dec 2003 00:00:00 GMT");
echo "Hi";
Jordan Russell