disable gzip based on user-agent

Igor Sysoev is at rambler-co.ru
Tue Nov 27 18:38:36 MSK 2007


On Tue, Nov 27, 2007 at 11:29:06PM +0800, Eden Li wrote:

> Hmm, I've been running a separate webserver that has a rule that says
> "only gzip for non-IE6 browsers" without issue, so maybe it's been
> fixed in Opera and Firefox (and other mainstream browsers), but not
> IE6.

Well, I will retest it with modern browsers.

> Anyway, is there any possible way to disable gzip based on user agent
> via some directive?

Now - not. However, I will add something in 0.6.19 or so.

> On 11/27/07, Igor Sysoev <is at rambler-co.ru> wrote:
> > Flash in any browser does not understand gzipping and this is well known
> > fact, at least for me :). I developed mod_deflate for Apache 1.3 long ago
> > and had documented this here (in Russian):
> >
> > http://sysoev.ru/mod_deflate/readme.html#types
> > http://sysoev.ru/mod_deflate/readme.html#browsers
> >
> > So the single way is disable gzip in locations which are requested
> > from Flash. It is not depeneded on browser.
> 

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





More information about the nginx mailing list