I have nginx sitting on port 80, redirecting requests to a play framework server as described by deployment docs.
I have verified that the server by default does not compress by doing the steps provided by zoul in this question. However as in the question when passed that gzip is supported, content is compressed.
There is also this question who fixed it by doing a full restart. This however does not work for me.
I suspect that Acceptable encoding is dropped somewhere, however I dont know how to check/fix it.
Can anyone provide clues? Thanks.
Unbuntu 11.10, with nginx 1.2 The /etc/nginx/nginx.conf snippet is as follows (if needed).
##
# Gzip Settings
##
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
expires modified +168h;