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:
parent
b6b0636f45
commit
e8367d6b2a
2 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue