Skip to content

Enable GZIP compression for some media types #61

@Robbert

Description

@Robbert

First, we should create an extensive list, preferably in a JSON array:

[
  "application/xml",
  "application/xslt+xml",
  "image/svg+xml",
  "text/css",
  "text/html",
  "application/javascript",
  "application/json",
  "text/plain"
]

Then convert it to different types of configurations, such as .htaccess

AddOutputFilterByType DEFLATE application/json

Or:

# The TTF and EOT font formats don't have a mime type assigned,
# match by their filename extension instead.
<FilesMatch "\.(ttf|eot)$">
  SetOutputFilter DEFLATE
</FilesMatch>

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