nginx gzip doesn't (always) respect Accept-Encoding header?

Maxim Dounin mdounin at mdounin.ru
Wed Jun 1 02:34:11 MSD 2011


Hello!

On Tue, May 31, 2011 at 10:19:54PM +0100, Ed W wrote:

> Hi, I seem to be missing an obvious step to control nginx gzip 
> based (only) on the clients Accept-Encoding header?

[...]

> Test 1
> Using Firefox (use about:config) I change my Accept-Encoding 
> header to be blank and now Firefox show me a page of unprintable 
> characters (gzipped content is still sent but apparently not 
> decoded by Firefox)

Are you sure content is actually "sent"?  I suspect it's extracted by 
Firefox from it's cache instead.

Maxim Dounin



More information about the nginx mailing list