Skip to content

[Issue] fix: update gzip types and remove IE6 workaround in nginx config #40774

@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #40681: fix: update gzip types and remove IE6 workaround in nginx config


Description

Expand the gzip_types list with missing compressible content types and remove the obsolete gzip_disable "msie6" directive from nginx.conf.sample.

Changes

1. Add missing gzip types

Add three compressible content types that are commonly served by Magento but not currently compressed:

Type Purpose
application/manifest+json PWA web app manifest files
application/vnd.ms-fontobject EOT font files
font/opentype OpenType (OTF) font files

Note: WOFF and WOFF2 fonts are already internally compressed and should not be gzip-compressed (double compression increases size).

2. Remove gzip_disable "msie6"

This directive disabled gzip for Internet Explorer 6, which had a broken gzip implementation. IE6 was released in 2001 and has had effectively zero market share for over a decade. The directive is dead weight.

Files Changed

  • nginx.conf.sample

⭐ Support my work

Do you like the fix? Remember to react with "👍🏻" to get it merged faster,
Then Sponsor me on Github so I can spend more time on fixing issues like this one.

Learn more at https://github.com/sponsors/lbajsarowicz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: P4No current plan to fix. Fixing can be deferred as a logical part of more important work.

    Type

    No type

    Projects

    Status

    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions