Disable gzip based on user-agent

Hi all,

Is it possible to turn off gzip compression based on $http_user_agent?
I tried:

if ($http_user_agent ~* msie\s+6.0) { gzip off; }

Except nginx says that I can’t put gzip there. Is there another way?

Background for those interested: Flash in IE6 can’t handle gzipped
content even though it advertises that it can.

Thanks,
eden

On 10/18/07, Eden Li [email protected] wrote:

Background for those interested: Flash in IE6 can’t handle gzipped
content even though it advertises that it can.

Thanks,
eden

I also would like to know if this is possible. We ended up disabling
gzip
for the sub-locations with flash (sub-optimal solution).

~Wayne