Manual:$wgCdnServersNoPurge
Appearance
From mediawiki.org
| HTTP proxy (CDN) settings: $wgCdnServersNoPurge | |
|---|---|
Same as $wgCdnServers , except no HTTP purges will be sent and CIDR ranges are accepted |
|
| Introduced in version: | 1.34.0 (Gerrit change 387877; git #f9f8dff4) |
| Removed in version: | Still in use |
| Allowed values: | (IPv4 & IPv6 addresses and/or Classless Inter-Domain Routing (CIDR) blocks) |
| Default value: | [] |
| Other settings: Alphabetical | By function | |
Details
[edit ]This variable is about telling MediaWiki an array of CIDR blocks or individual IP addresses where any IP address that is part of the range has to be considered as a Proxy server.
This means that X-Forward-For headers will be respected for requests from IP addresses or ranges on this list.
Same as $wgCdnServers , except that MW does not send PURGE requests to clear cache.
You can use this setting for proxy servers that do not cache content or are purged by a different means such as Purged .
All documentation in Manual:$wgCdnServers#Configuration example with Varnish is valid, but with difference described below.
// In LocalSettings.php $wgUseCdn = true; $wgCdnServersNoPurge = []; $wgCdnServersNoPurge[] = "192.0.2.0/24";