Manual:$wgCdnMatchParameterOrder

Details
Set this to false if MediaWiki is behind a CDN that re-orders query parameters on incoming requests. MediaWiki sets a large  directive on page views only if the request URL matches one of the normal CDN URL forms. When this setting is false, the matching algorithm ignores the order of URL parameters.