Skip to content

Name collision with br(azilian) language on php-fpm? #13

@maniac0s

Description

@maniac0s

For some reason I need to remove Brazilian language from mime.conf when using brotli.so with php-fpm so it doesn't get send as content-language br

When I have in my mime.conf:
AddLanguage .br

And add br compression for .css to Drupal, I get the following response headers for the aggregated .css (and only the headers that are aggregated by php in Drupal):

accept-ranges: bytes
cache-control: max-age=31449600, no-transform, public, immutable
content-encoding: br
content-language: br
content-length: 1891
content-type: text/css
date: Fri, 26 Oct 2018 11:50:11 GMT
expires: Fri, 25 Oct 2019 11:50:11 GMT
last-modified: Fri, 26 Oct 2018 11:45:05 GMT
server: Apache
status: 200
vary: Accept-Encoding

when I add RemoveLanguage br to mime.config, the content-language header field disappears.

The encoding works however it doesn't seem to make sense to have a content-language br for css files just because I deliver brotli.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions