Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Investigate if it makes sense to include the middleware to compress all responses #70

Open
oriolbcn opened this issue Jan 25, 2018 · 1 comment

Comments

@oriolbcn
Copy link

  • Check also if Nginx is already doing it or not.
  • Check if it can provoke issues.
  • Maybe it can be configured at the Nginx level instead?

https://schneems.com/2017/11/08/80-smaller-rails-footprint-with-rack-deflate/

@pablorc
Copy link
Member

pablorc commented Feb 1, 2018

The actors involved in each stack could vary, so a only Nginx level solution is not ideal.

We are going to add support at middleware level to compress always and notify the users to be aware of this behaviour (so they can move it to app servers, or remember to disable the compression there).

As a note, a request compresses twice won't work in browsers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants