Skip to content

幽默设定之:当源站开启了压缩功能,则ESA的压缩规则不生效 #28

@Trashblazer

Description

@Trashblazer

https://help.aliyun.com/zh/edge-security-acceleration/esa/user-guide/content-compression

压缩规则不生效的场景

  • 当源站开启了压缩功能,且服务端响应中携带了响应头Content-Encoding时,压缩规则将不再生效。

众所周知,Nginx等Web代理引擎默认使用gzip压缩。ESA执行上述规则,因此用户即便在ESA开启的Brotli和Zstd,也只会响应gzip压缩结果。

要实现ESA到客户端的Brotli和Zstd压缩,只能关闭源站的gzip压缩,或者在源站开启Brotli和Zstd压缩。

那我问你,用户手动开启这个开关的意义何在?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions