Static assets served gzip-compressed despite Accept-Encoding: identity in AEM Edge Delivery Services

Static assets in AEM Edge Delivery Services are returned gzip-compressed even when requests specify Accept-Encoding: identity because the CDN stores and serves these assets in compressed form. To fix the issue, configure the integration to bypass static assets or decompress gzip-encoded content before processing.

Description description

Environment

Adobe Experience Manager Edge Delivery Services (all versions)

Issue/Symptoms

  • Static assets (for example, JavaScript or CSS files) are returned with gzip compression even when Accept-Encoding: identity is specified in the request.
  • Downstream systems or proxies that require uncompressed assets fail to process these responses.
  • HTML content requested with the same header is typically returned uncompressed as expected.

Cause

The CDN layer in AEM Edge Delivery Services is optimized for performance and caching. It stores and serves static assets in compressed (gzip) form by default and doesn’t decompress or re-encode these assets in response to Accept-Encoding: identity. This is expected platform behavior.

Resolution resolution

To address the static asset compression issue, follow these steps:

  1. Review your integration requirements to determine if static assets (JavaScript, CSS, etc.) must be processed by downstream systems such as translation proxies.

  2. If your translation connector or proxy doesn’t require translation of static assets, configure it to bypass or ignore these files. Focus translation logic on textual content such as HTML or JSON, which are typically served uncompressed when requested with Accept-Encoding: identity.

    • For example, set up routing rules or filters in your proxy to exclude requests for paths ending with .js, .css, or other non-translatable static resources.
  3. If your workflow requires processing compressed responses, ensure your connector or proxy can decompress gzip-encoded content before further processing. This is standard for modern web integrations.

  4. If your integration involves a reverse proxy generating high-concurrency traffic from a limited set of IPs, ensure that requests are clearly identified (for example, with custom headers or authentication) to avoid issues with security features such as WAF, bot protection, or rate limiting.

  5. After making these changes, verify that static assets are either bypassed by the translation workflow or are successfully decompressed and processed by your integration.

recommendation-more-help
experience-cloud-kcs-help-kbarticles