Manual:$wgResourceLoaderMaxage

From MediaWiki.org
Jump to: navigation, search
Resource loader: $wgResourceLoaderMaxage
Maximum time in seconds to cache resources served by the resource loader.
Introduced in version: 1.17.0 (r73568)
Removed in version: still in use
Allowed values: array
Default value: see below

Other settings: Alphabetical | By Function


Default value [edit]

$wgResourceLoaderMaxage = array(
        'versioned' => array(
                // Squid/Varnish but also any other public proxy cache between the client and MediaWiki
                'server' => 30 * 24 * 60 * 60, // 30 days
                // On the client side (e.g. in the browser cache).
                'client' => 30 * 24 * 60 * 60, // 30 days
        ),
        'unversioned' => array(
                'server' => 5 * 60, // 5 minutes
                'client' => 5 * 60, // 5 minutes
        ),
);

Details [edit]

Maximum time in seconds to cache resources served by the resource loader.

See also [edit]

Language: English  • français