2 messages in ru.sysoev.nginxRe: Turn of gzip for two specific loc...
FromSent OnAttachments
Wayne E. SeguinMar 7, 2007 2:25 pm 
Igor SysoevMar 7, 2007 10:20 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Turn of gzip for two specific locations.Actions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Mar 7, 2007 10:20:58 pm
List:ru.sysoev.nginx

On Wed, Mar 07, 2007 at 05:26:21PM -0500, Wayne E. Seguin wrote:

I've found a lovely issue with IE6 that doesn't allow .swf files to consume XML files that are compressed with gzip so I'm trying to figure out how to turn off gzip compression for two locations.

One is anything under the /dashboard/gauge/ and the other is anything under /graphs/

Here's my attempt which doesn't seem to be working:

Attempt 1: server { ... location / { if ($uri ~* /dashboard/gauge*) { gzip off; } ...

Attempt 2:

server { ... location ^~ /dashboard/gauge* { gzip off; }

location / { ...

Any suggestions on how to do this?

The "if" has many limitation, so it's better to use

location /graphs/ { gzip off; ... }

location /dashboard/gauge/ { gzip off; ... }