# Class CompressionMode (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    CompressionMode(value)

Compress text responses using Brotli or gzip compression,
based on the client's Accept-Encoding header.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `UNDEFINED_COMPRESSION_MODE` | A value indicating that the enum field is not set. |
| `AUTOMATIC` | Automatically uses the best compression based on the Accept-Encoding header sent by the client. |
| `DISABLED` | Disables compression. Existing compressed responses cached by Cloud CDN will not be served to clients. |