You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jesus Altuve <ja...@gmail.com> on 2007/11/24 23:12:39 UTC

mod_cache, Vary Header and (gzip,deflate) vs (gzip, deflate)

Hi!

I've noticed that Internet Explorer (6) Accept-Encoding request header is
sent with spaces
(e.g gzip, deflate), so, if a Vary: Accept-Encoding is present when caching
responses there will be a cache miss, even though the request should be
served from cache.

So, the workaround is to do an early processing for RequestHeader and modify
it removing spaces. My question is:

should mod_cache match Vary headers 'exactly' as they are or would it be
advisable to simply 'remove spaces' from it and then match so browser bugs
such as this won't cause cache misses?