Manual:$wgResourceLoaderMaxQueryLength
Appearance
ResourceLoader: $wgResourceLoaderMaxQueryLength | |
---|---|
Maximum query string length for ResourceLoader requests. |
|
Introduced in version: | 1.17.0 (r87203) |
Removed in version: | Still in use |
Allowed values: | (integer or boolean) |
Default value: | false |
Other settings: Alphabetical | By function |
Details
ResourceLoader will not generate URLs whose query string is more than this many characters long and will instead use multiple requests with shorter query strings. This degrades performance, but may be needed based on the maximum length supported by your web server and/or your user's web browsers.
Prior to MediaWiki 1.34, this could be set to a negative number, for which ResourceLoader would assume there is no query string length limit.
When installing MediaWiki, the installer will automatically warn if you have Suhosin installed with a limit lower than 2000.
Default value
MediaWiki version: | ≥ 1.22 |
$wgResourceLoaderMaxQueryLength = false;
MediaWiki versions: | 1.17 – 1.21 |
$wgResourceLoaderMaxQueryLength = -1;