Some browsers will handle compressed content even if they didn't ask for
it (eg. Opera) but some refuse to decode it even if it does contain the
correct headers.
When it's configured to use HTTP/1.0 IE does not send the
Accept-Encoding header to indicate that it will accept compressed
content and if a compressed response is returned it will *not* be
uncompressed even if it has the correct Content-Encoding header.
It's possible to have a more 'aggressive' approach and apply compression
based on the User-Agent but lots of other things have to be taken into
account as well (firewalls that strip the headers, proxies that upgrade
or downgrade the request and so on).
So, it's normally simpler and safer to just go off the Accept-Encoding
headers which is the "official" way the content negotiation works (to
the HTTP spec).
- Simon Green
InteSoft.NET
http://www.intesoft.net
ASPAccelerator.NET - speed up your website and save bandwidth.
ASPRedirector.NET - put a friendly face on your website.
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!