X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=bae9c772e3bca8d521ced2b4ac6988ce28abb66a;hp=2b6088edeb3602ee086bcd444fce302e5b223c87;hb=bdfe02223205923d923923dd420ba0dd863cd0fe;hpb=559460eb9286d26f7f46c99052bf1b942b45d641 diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 2b6088edeb..bae9c772e3 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1625,11 +1625,13 @@ function wfShowingResults( $offset, $limit ) { } /** - * @todo document - * @todo FIXME: We may want to blacklist some broken browsers + * Whether the client accept gzip encoding * - * @param bool $force - * @return bool Whereas client accept gzip compression + * Uses the Accept-Encoding header to check if the client supports gzip encoding. + * Use this when considering to send a gzip-encoded response to the client. + * + * @param bool $force Forces another check even if we already have a cached result. + * @return bool */ function wfClientAcceptsGzip( $force = false ) { static $result = null;