From 30314717ccbcc2425f3d75f5bab05f30f65c4fcc Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 27 Nov 2013 23:17:02 -0500 Subject: [PATCH] Enable gzip encoding, which should make downloading of static resources AND pulling of images much faster --- nginx.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nginx.conf b/nginx.conf index cc97cf299..032e2bd55 100644 --- a/nginx.conf +++ b/nginx.conf @@ -17,6 +17,15 @@ http { access_log /tmp/nginx.access.log combined; sendfile on; + gzip on; + gzip_http_version 1.0; + gzip_proxied any; + gzip_min_length 500; + gzip_disable "MSIE [1-6]\."; + gzip_types text/plain text/xml text/css + text/javascript application/x-javascript + application/octet-stream; + upstream app_server { server unix:/tmp/gunicorn.sock fail_timeout=0; # For a TCP configuration: