GZIP compression
GZIP compression helps you save bandwidth efficiently by ensuring the proper compression of selected responses in outbound API traffic.
An easy and efficient way to optimize the performance of your API, GZIP compression lets you reduce the size of data packets included in your API responses. API Gateway compresses the responses as they exit the Akamai network, which contributes to improved transfer speeds and bandwidth savings. This in turn facilitates faster communication between your API and the clients.
In API Gateway you can decide either to compress all API responses, or to apply the same compression rules that you set for your origin server.
Configure GZIP compression
With GZIP compression enabled, you can save bandwidth and reduce loading times by compressing API responses as they exit the Akamai network. You can specify the response types that you want to deliver in a compressed format.
API
You can also complete this task by using the API Endpoints API. Run the Edit GZIP settings operation. Learn more about Akamai's APIs.
-
On the API Definitions page, in the Registered APIs section, click the ellipsis icon (...) associated with the API configuration you want to configure GZIP compression settings for.
-
From the menu, select Manage versions.
-
In the Version history panel, click the ellipsis icon (...) associated with the API configuration version you want to configure GZIP compression settings for.
-
From the list of delivery options, select GZIP compression.
-
On the GZIP compression page, from the Compress response menu, select one of the following options:
- To allow compressed responses without restrictions, select Always.
- To allow compressed responses as specified on the origin server, select Same as origin.
- To forbid compressed responses, select Never.
-
Click Save.
Updated 3 months ago