WebFaction
Community site: login faq

I saw in a previous question that responses for static files served by nginx are gzip compressed when possible. Will nginx also gzip responses from custom applications when possible? Or would the custom application need to do the gzipping itself? Thanks.

asked 09 Jun '12, 01:26

Duke
2526
accept rate: 0%


POSTs would have to be gziped by the client application and the server application would have to know what to do with them as well.

permanent link

answered 09 Jun '12, 01:37

johns
5.4k312
accept rate: 23%

Right, I understand nginx wouldn't decompress gzipped requests before forwarding to the custom application. But if nginx sees that a client accepts gzip responses, will it gzip the response from the custom application?

(09 Jun '12, 03:15) Duke

Only if the response type matches nginx's gzip_types. For example: text/plain, text/css, application/x-javascript, text/xml, application/javascript, application/xml, application/xml+rss, text/javascript, application/json

(09 Jun '12, 08:17) timg ♦♦

Great, thanks, I'll give it a try.

(09 Jun '12, 08:59) Duke
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×186
×57
×47
×14

question asked: 09 Jun '12, 01:26

question was seen: 2,903 times

last updated: 09 Jun '12, 08:59

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM