disable gzip based on user-agent
Igor Sysoev
is at rambler-co.ru
Tue Nov 27 18:06:58 MSK 2007
On Tue, Nov 27, 2007 at 10:30:03PM +0800, Eden Li wrote:
> Flash in IE6 has issues if you make requests via its ActionScript API.
> IE6 tacks on an `Accept-Encoding: gzip,default` when it makes the
> request, but when the server actually returns a gzipped body the Flash
> plugin barfs all over it.
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.
> I haven't seen any other corner cases like this, but I'm sure there's
> another one out there. I've just disabled gzip encoding for
> mime-types that are limited to what our Flash app is pulling, but it'd
> be nice to switch it on and off without having to resort duplicating
> rules in different location bodies. IE6 is still the dominant
> browser, unfortunately.
>
> On 11/27/07, Athan Dimoy <foxx at freemail.gr> wrote:
> > "Igor Sysoev" <is at rambler-co.ru> wrote in message
> > news:20071127121827.GE4729 at rambler-co.ru...
> > > Well, I think compressing CSS for MSIE6 should be hardcoded disabled.
> > > Are other modern browsers those have problems with JS or CSS ?
> >
> >
> > Hmm, I wouldn't agree that CSS compression for IE6 should be hardcoded
> > disabled. I'm using CSS compression and never noticed any serious issue with
> > IE6.
> > An option switch would be the best fix IMHO.
> >
> > Athan
> >
> >
> >
> >
>
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list