title: Python WhiteNoise not gzip compressing in Flask application
body: <p>I used <code>WhiteNoise</code> in my <code>Flask/Python3</code> application with <code>gunicorn</code> being the web server as follows:</p>
  
  <pre class="lang-python prettyprint-override"><code>from whitenoise import WhiteNoise
  
  app = Flask(__name__, static_folder='static')
  app.wsgi_app = WhiteNoise(app.wsgi_app, root='static/')
  app.wsgi_app.add_files(app.static_folder)
  </code></pre>
  
  <p>I even tried to create <code>static_folder</code> in <code>Flask object</code> and adding it later on to additional <code>WhiteNoise</code> files but that did not work either. It compiles fine, but when I do:</p>
  
  <pre class="lang-bash prettyprint-override"><code>curl -i -H "Accept-Encoding: gzip" https://my-homepage/static/css/my.css
  </code></pre>
  
  <p>I receive the following response:</p>
  
  <pre class="lang-json prettyprint-override"><code>HTTP/1.1 200 OK
  Connection: keep-alive
  Server: gunicorn/19.8.1
  Date: Wed, 23 May 2018 09:53:38 GMT
  Content-Length: 50162
  Content-Type: text/css; charset=utf-8
  Last-Modified: Wed, 23 May 2018 09:51:21 GMT
  Cache-Control: public, max-age=43200
  Expires: Wed, 23 May 2018 21:53:38 GMT
  Etag: "1527069081.0-50162-130551313"
  Accept-Ranges: bytes
  Strict-Transport-Security: max-age=31536000
  Via: 1.1 vegur
  </code></pre>
  
  <p>You can see the <code>Content-Encoding: gzip</code> not being present. What am I missing?</p>