-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kong + Gzip doesn't work #1200
Comments
Ok, I manage to make it work by deactivating the "response-transformer" plugin. |
What does "BC" means ? |
@diwann just labels we use to track issues infernally... we are actively looking at the gzipping questions for Kong. |
@thefosk @Tieske can this be closed or we waiting for 0.9.0 release? |
This is caused when the plugin tries to access the body of the request/response, and it's unable to read it because it's gzipped. @diwann what plugin configuration did you have for the Response Transformation plugin? |
I have the following settings:
However, I haven't checked yet if it's still the case with Konk 0.9 |
Yes, I just checked, and it's still the case with 0.9.0 (and "next") |
ok, I finally found a solution: in order to access to the json structure, the response-transformer plugin need to access the body of the response from the backend.
Then, you need to activate the gzip compression on nginx side, under the "server" section, with:
🎉 |
@diwann thx for reporting back with the solution you found! |
This is great - @diwann if you submit a PR I will be happy to tweak and merge it. |
A variation to @diwann 's suggestion for the nginx side from #1200 (comment) is to use the |
I have the nginx-kong.conf file with 3 server blocks kong, kong_gui, kong_admin when i restart the kong it overrides those directive, i see the kong.conf have a nginx inject block but i didn't find a way to inject in location / block |
Probably a newbie question here, but I am struggling with it for 2 days and can't find the answer...
So: I can't manage to make Kong accept the "Accept-Encoding: gzip" header.
Whenever I make a request with the "Accept-Encoding: gzip" header, I have a correct 200 OK status, but my answer is empty ...
And gzip on the openresty nginx server seems already activated as it already answer "Accept-Encoding: gzip" in the response header...
The problem is that this header is automatically set by browsers, so I can't demo my API if I setup a Kong proxy.
So how to make Kong accept (or ignore) this header ?
The text was updated successfully, but these errors were encountered: