I found that the compression must be enabled on webserver to have effect.
All that is needed is to add following:
AddOutputFilterByType DEFLATE text/html text/css application/x-javascript application/javascript
in <VirtualHost *:80></VirtualHost>
directive for Apache(phusion passenger) for my case.