1
0
Fork 0
mirror of https://github.com/Findus23/matomo-DiagnosticsExtended.git synced 2024-09-19 16:03:46 +02:00

also accept brotli compression

This commit is contained in:
Lukas Winkler 2021-04-15 11:49:10 +02:00
parent b6b0636f45
commit e8367d6b2a
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ class MatomoJsCheck implements Diagnostic
}
$contentEncoding = $headers["content-encoding"];
if ($contentEncoding === "gzip") {
if ($contentEncoding === "gzip" || $contentEncoding === "br") {
$results->addItem(new DiagnosticResultItem(
DiagnosticResult::STATUS_OK,
Piwik::translate("DiagnosticsExtended_MatomoJSCheckGzipped")

View file

@ -14,7 +14,7 @@
"DatabaseVersionCheckMariaDBOutdated": "There is a newer MariaDB patch version (%1$s) available (you are using %2$s/%3$s). You should update to it as soon as possible",
"MatomoJSCheckFailed": "It seems like matomo.js can't be fetched properly.",
"MatomoJSCheckFailedCurlTip": "try running %s on your server and see if it is able to fetch the file successfully",
"MatomoJSCheckGzipped": "matomo.js is delivered gzipped.",
"MatomoJSCheckGzipped": "matomo.js is delivered compressed.",
"MatomoJSCheckMIMEError": "matomo.js should be delivered with an 'application/javascript' Content-Type. You are using '%s'.",
"MatomoJSCheckNotGzipped": "matomo.js is not delivered gzipped. You might want to set up gzip for .js files as it can reduce the size of the file by up to 60 %.",
"MatomoJSCheckUnknown": "Matomo could not check if your matomo.js can be fetched properly.",