http compression headers

Hi,

When using the http compression output filter the Content-Encoding header in the response is different depending on whether the requests comes in with accept-encoding x-gzip (http 1.0) or gzip (http 1.1).If x-gzip in then we get x-gzip out and same with gzip.

This is a problem for us since we are caching the html response into a netcache proxy server.If the page goes into the cache with x-gzip header, IE6 users get a binary dump of the compressed page in their browser since the proxy is serving it even though the user request has Accept-Encoding: gzip and not x-gzip. IE6 it does not know to decompress the page if it is x-gzip.

Is there a way in the client tag to prevent using gzip if it is a http 1.0 request or using x-gzip accept-encoding?

Here is current config:

<Client urlhost="www.xxx.com">

Output fn="insert-filter" filter="http-compression" type="text/html*" vary="on" fragment-size="8096" compression-level="1"

Output fn="insert-filter" filter="http-compression" type="text/xml" vary="on" fragment-size="8096" compression-level="1"

Output fn="insert-filter" filter="http-compression" type="application/xml" vary="on" fragment-size="8096" compression-level="1"

</Client>

We are using 6.1sp6 on solaris 9.

[1305 byte] By [mshamber001a] at [2007-11-26 18:04:25]
# 1

I found more docs for the Client tag at http://docs.sun.com/source/817-6252/npgobjcn.html#wp1041206.

I tried this one but it did not work:

query - Query string sent in the request

<Client urlhost="www.xxx.com" query="*1.1">

Output fn="insert-filter" filter="http-compression" type="text/html*" vary="on" fragment-size="8096" compression-level="1"

</Client>

Message was edited by:

mshamber001

mshamber001a at 2007-7-9 5:34:48 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
In Sun Java System Web Server 7.0, you can use the <If> tag to do this:<If defined $headers{'accept-encoding'} and $headers{'accept-encoding'} !~ "x-gzip">Output fn="insert-filter" ...</If>
elvinga at 2007-7-9 5:34:48 > top of Java-index,Web & Directory Servers,Web Servers...