We have a custom REST API that doesn't seem to support gzip compression.
curl https://mobileteamdeploycommunity.force.com/taroworks/services/data/v33.0/ -H 'Authorization: Bearer xxxxxxxxxxxxxxxxxx' -H 'Accept-Encoding: gzip' -v
Which uses the Salesforce API seems to work fine and compresses that data. But
curl https://mobileteamdeploycommunity.force.com/taroworks/services/apexrest/performance/ -H 'Authorization: Bearer xxxxxxxxxx' -H 'Accept-Encoding: gzip' -v &> performance_with_gzip
Which uses our custom REST API doesn't compress and we get the JSON result uncompressed.
Is there a way to make compression work in the second case?
@RestResource
that just returns a short string. It came back with Content-Encoding: gzip, Content-Type: application/json;charset=UTF-8. So it would appear to be compressed.