In certain caching setups, Cloudflare doesn't consider the query parameters when caching. MediaWiki requires these query parameters and serves dynamic content based on query parameters.
Please make sure that query parameters are preserved when caching: https://stackoverflow.com/questions/54965779/how-to-configure-query-params-in-aws-cloudfront