gzip enabling for selective browsers

Igor Sysoev is at rambler-co.ru
Tue Sep 4 22:11:33 MSD 2007


On Tue, Sep 04, 2007 at 06:53:32PM +0200, Roxis wrote:

> On Tuesday 04 September 2007, Ezra Zygmuntowicz wrote:
> > 	So nginx cannot selectively gzip based on browser, can it turn off
> > gzip inside a location /foo {} block?
> 
> location / {
>     if ($http_user_agent ~ MSIE) {
>         gzip off;
>     }
> }

It may be set so, but as any configuration inside "if" has drawbacks.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list