> Something like this should work:
>
> location /files/ {
> internal;
> add_header Content-Encoding $upstream_http_content_encoding;
> }
Thanks yep that worked.
> This might not work well with nginx gzip filter though.
And yes, I had to turn gzip off for the internal loc
I have Nginx setup to allow requests to be served with the X-Accel-Redirect
header. This works fine for images, but I'm trying to get it to work for
Javascript files that are already gzip'ed on the disk.
It appears Nginx is stripping off the 'Content-Encoding: gzip' header. This
makes the browser