disable gzip based on user-agent

Wayne E. Seguin wayneeseguin at gmail.com
Thu Oct 18 17:18:26 MSD 2007

On 10/18/07, Eden Li <eden at mojiti.com> wrote:
> 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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20071018/760cfb5b/attachment.html>

More information about the nginx mailing list