Maxim, thank you for your answer. I've patched nginx 0.7.67 to export gzip_ok to config file variable space (see attachement). I'm not a C guy, but it seems to work :-) I' currently using it like this: location /json-data/ { set $ae ""; if ($gzip_ok) { set $ae "gzip"; } proxy_pass http://10.2.3.4/json-upstream/; proxy_cache_key "$gzby chrisl - Nginx Mailing List - English
Hi. AFAIK nginx only stores plain (uncompressed) content when acting as a caching proxy server. With gzip=on, content for gzip-accepting clients will be compressed by the server _for_ _every_ _request_ (?). Wouldn't it be better to have two cache files like this: /data/nginx/cache/c29b7f54b2df7773722d382f4809d65029c /data/nginx/cache/c29b7f54b2df7773722d382f4809d65029c.gz Another soluby chrisl - Nginx Mailing List - English