These settings reduce the bytes your configuration sends. Smaller payloads mean less network overhead and a faster experience — and because DSA's HTML is generated per request rather than served from cache, compressing it is one of the few size levers available on the dynamic path.
brotli
brotliRecommended.
{
"name": "brotli",
"options": {
"enabled": true
}
}Lets edge servers cache and serve Brotli-compressed assets. Brotli compresses significantly better than Gzip, so page load times and bandwidth both drop for clients that support it. When a browser sends Accept-Encoding: br, Akamai serves the Brotli version; when it doesn't, Akamai falls back to Gzip or uncompressed automatically — which is why this is safe to leave on.
- Resources need to be Brotli-compressed on your origin.
- It covers more content types than Resource Optimizer or Last Mile Acceleration, and can compress non-cacheable resources.
- If a Gzip version of a file is already cached, Akamai keeps serving it until its TTL expires. The Brotli version populates after that.
gzipResponseTemplate
gzipResponseTemplate{
"name": "gzipResponseTemplate",
"options": {
"gzipCompression": "ALWAYS",
"contentType": [
"application/javascript",
"application/*javascript*",
"application/json",
"text/html*",
"text/css*",
"..."
]
}
}Optimizes the last mile between the edge and the browser. The edge checks for Accept-Encoding: gzip before compressing, so clients that can't decompress aren't affected.
| Option | Ships as | Why |
|---|---|---|
gzipCompression | ALWAYS | Every matching response is compressed before delivery, including uncacheable ones — which, on DSA, is most of the HTML. ORIGIN_RESPONSE compresses only what your origin already compressed; NEVER disables it. |
contentType | 38 entries | A list of MIME types — not file extensions — covering the text-based formats common to websites and apps, with wildcards (text/html*, application/*javascript*). Leave the defaults in place; add types for broader coverage. |
The full list is in the newEnvironmentVersionTemplate returned by Get product definition.
