{"action":"created","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/409","labels_url":"https://api.github.com/repos/Mashape/kong/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/409/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/409/events","html_url":"https://github.com/Mashape/kong/issues/409","id":95745992,"number":409,"title":"[request] GZip outbound compression","user":{"login":"sinzone","id":1213643,"avatar_url":"https://avatars.githubusercontent.com/u/1213643?v=3","gravatar_id":"","url":"https://api.github.com/users/sinzone","html_url":"https://github.com/sinzone","followers_url":"https://api.github.com/users/sinzone/followers","following_url":"https://api.github.com/users/sinzone/following{/other_user}","gists_url":"https://api.github.com/users/sinzone/gists{/gist_id}","starred_url":"https://api.github.com/users/sinzone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinzone/subscriptions","organizations_url":"https://api.github.com/users/sinzone/orgs","repos_url":"https://api.github.com/users/sinzone/repos","events_url":"https://api.github.com/users/sinzone/events{/privacy}","received_events_url":"https://api.github.com/users/sinzone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mashape/kong/labels/plugins","name":"plugins","color":"bfdadc"},{"url":"https://api.github.com/repos/Mashape/kong/labels/request","name":"request","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-17T21:10:33Z","updated_at":"2015-08-18T21:32:49Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/Mashape/kong/issues/comments/132359119","html_url":"https://github.com/Mashape/kong/issues/409#issuecomment-132359119","issue_url":"https://api.github.com/repos/Mashape/kong/issues/409","id":132359119,"user":{"login":"montanaflynn","id":24260,"avatar_url":"https://avatars.githubusercontent.com/u/24260?v=3","gravatar_id":"","url":"https://api.github.com/users/montanaflynn","html_url":"https://github.com/montanaflynn","followers_url":"https://api.github.com/users/montanaflynn/followers","following_url":"https://api.github.com/users/montanaflynn/following{/other_user}","gists_url":"https://api.github.com/users/montanaflynn/gists{/gist_id}","starred_url":"https://api.github.com/users/montanaflynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montanaflynn/subscriptions","organizations_url":"https://api.github.com/users/montanaflynn/orgs","repos_url":"https://api.github.com/users/montanaflynn/repos","events_url":"https://api.github.com/users/montanaflynn/events{/privacy}","received_events_url":"https://api.github.com/users/montanaflynn/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T21:32:49Z","updated_at":"2015-08-18T21:32:49Z","body":"Adding that directive would be a good a idea, but there are a lot more options as well. As I noted in the PR https://github.com/Mashape/kong/pull/481 there is also the issue of which mime type to apply gzipping to which would be a necassary option to include in the `kong.yml`.  \r\n\r\nPersonally I would prefer to have this type of functionality be configured through a plugin as there are [many available options](http://nginx.org/en/docs/http/ngx_http_gzip_module.html). Having them in `kong.yml` would add more initial configuration, effect every request and response, and not be able to be changed programatically. \r\n\r\nI agree that whatever is chosen Kong should respect the `Accept-Encoding` header just as Nginx does but as a lightweight high-performance proxy I don't think Kong should do it for every request unless told to."}}