Skip to content

Maybe disable gzip in nginx config only when there is an ETag header? #325

@benediktg

Description

@benediktg

I have found this page from the nginx docs: https://nginx.org/en/docs/http/ngx_http_gzip_module.html

It says about the gzip_proxied statement:

Enables or disables gzipping of responses for proxied requests depending on the request and response. The fact that the request is proxied is determined by the presence of the “Via” request header field. The directive accepts multiple parameters:
[…]
no_etag
enables compression if a response header does not include the “ETag” field;

Could it make sense to enable gzip but only disable it for responses containing the ETag header (in the nginx config recommendation)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions