Manual:$wgUseGzip

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎français • ‎日本語 • ‎polski
Cache: $wgUseGzip
Use GZip to store cached pages.
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values: boolean
Default value: false
From 1.2.0 to 1.3.0 inclusive, it was calculated automatically.
Other settings: Alphabetical | By function

Details[edit]

When using the file cache, we can store the cached HTML gzipped to save disk space. Pages will then also be served compressed to clients that support it. In older versions of MediaWiki it also controlled if normal (non file-cached) pages were gzipped.

Warning Warning: THIS IS NOT COMPATIBLE with ob_gzhandler which some users may have enabled in LocalSettings.php. (See Manual:$wgDisableOutputCompressionManual:$wgDisableOutputCompression.) If you enable this, remove that setting first. It is also incompatible with automated gzipping done on the server side (e.g. mod_deflate) and zlib.output_compression

Requires zlib support to be enabled in PHP.

Between 1.2.0 and 1.3.0 (inclusive) the default value was true if the function 'gzencode' is defined, otherwise false. For prior and later versions it defaults to false.

Notes[edit]

You can test your website compression here: http://www.whatsmyip.org/http_compression