Enabling gzip compression for the pod?


(Spc Cw) #1

By default gzip compression is disabled for nginx config and not present in example diaspora reverse proxy configuration.

I tried to enable it for my pod to see any change in performance and was amazed how it affected page load times! It literally supercharged my weak server cutting page load times in half (5-6 seconds full stream load turning into 2-3 seconds). Mobile stream loads lighting fast. There is light and day difference.

Is there any reasoning not to enable gzip compression?

As I understand using TLS and compression has potential to create vulnerability for CRIME/BREACH attack but it is hard to understand if Diaspora is affected given the modern software configurations. Are there any best practices regarding compression?