Merge "Add documentation for wfClientAcceptsGzip()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 25 Oct 2016 21:45:03 +0000 (21:45 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 25 Oct 2016 21:45:03 +0000 (21:45 +0000)
includes/GlobalFunctions.php

index 2b6088e..bae9c77 100644 (file)
@@ -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;