To improve performance and reduce bandwidth usage, Wyzio API supports HTTP response compression.
How it works
When your client includes an Accept-Encoding header specifying one or more supported compression algorithms, the server will automatically compress the response using a matching algorithm.
The response will then include a Content-Encoding header indicating which algorithm was applied.
If no preference is specified (*), the server will default to gzip.
Example request
GET /api-v1/contact HTTP/1.1
Host: wyzio.app
Accept-Encoding: gzip
Example response
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Type: application/json
...
Supported algorithms
The API only supports the following compression methods:
gzip: Gzip compression*: No specific preference (defaults to gzip)
Note: The list of supported compression algorithms may be extended or changed in the future.
Best practices
- Compression is automatically applied by the server if the
Accept-Encodingheader is supplied; no additional configuration is required. - Be aware that compression can increase CPU usage on both client and server sides.
- For very small payloads, compression may not provide a significant benefit.