gzip enabling for selective browsers

Roxis roxis at list.ru
Tue Sep 4 20:53:32 MSD 2007


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;
    }
}





More information about the nginx mailing list