Manual:$wgAllowExternalReqID

Details
If set to  , that value will be used throughout the code as the request identification.

Otherwise, the sent header will be ignored and the request ID will either be taken from Apache's   module or will be generated by MediaWiki itself (depending on the set-up).