WebFaction
Community site: login faq

I have a custom application which communicates with mobile devices using json. Using gzip compression has a significant impact on network performance since it reduces file sizes by 60-70%. However, I've found that gzip compression is only working on the http version, not https.

I used a tool at http://checkgzipcompression.com/ to verify this, and curl shows the same results. I don't think that I have control over the configuration of nginx which is proxying my application. Is there anything that I can do to get gzip compression on https?

Details below:

curl -v -H 'Accept-Encoding: gzip' http://...

> Accept-Encoding: gzip
< HTTP/1.1 200 OK
< Server: nginx
< Date: Mon, 09 Sep 2013 06:21:27 GMT
< Content-Type: application/json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Vary: Accept-Encoding
< Pragma: no-cache
< Cache-Control: no-cache
< Content-Encoding: gzip

curl -v -H 'Accept-Encoding: gzip' https://...

> Accept-Encoding: gzip
< HTTP/1.1 200 OK
< Server: nginx
< Date: Mon, 09 Sep 2013 06:28:19 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 794957
< Connection: keep-alive
< Pragma: no-cache
< Cache-Control: no-cache

asked 09 Sep '13, 01:36

BinaryMan32
111
accept rate: 0%

To clarify, I'm relying on the nginx proxy completely for compression. My application does not attempt to do gzip compression on either http or https.

(09 Sep '13, 01:47) BinaryMan32

The reason gzip is disabled for HTTPS traffic is to prevent BREACH attacks, so it is a security concern.

permanent link

answered 09 Sep '13, 02:20

waynek
4254
accept rate: 27%

You can now selectively enable and disable gzip compression for HTTPS websites via our control panel at:

https://my.webfaction.com/websites

permanent link

answered 25 May '17, 16:14

seanf
12.2k41836
accept rate: 37%

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:

×74
×47
×14

question asked: 09 Sep '13, 01:36

question was seen: 4,042 times

last updated: 25 May '17, 16:14

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