gzip enabling for selective browsers

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


On Tue, Sep 04, 2007 at 09:45:41AM -0700, Ezra Zygmuntowicz wrote:

> 
> On Sep 2, 2007, at 8:21 AM, Igor Sysoev wrote:
> 
> >On Sun, Sep 02, 2007 at 08:44:12PM +0530, Manu J wrote:
> >
> >>Since IE has problems with gzipped javascript and xml I would like to
> >>know how to selectively enable/disable gzipping based on the browser.
> >
> >By default text/html is compressed only.
> >The application/x-javascript, text/xml, application/xml are compressed
> >only if they set by gzip_types directive.
> >
> >nginx has no directive to disable gzip on browser basis, however,  
> >nginx
> >internally disableы gzip for some request made by MSIE 4.x.
> 
> 
> 	So nginx cannot selectively gzip based on browser, can it turn off  
> gzip inside a location /foo {} block?

It may be set on http, server, and location level.


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





More information about the nginx mailing list