When I make a GET request to https://api.enterprise.wikimedia.com/v1/pages/meta/enwiki/Earth with a Accept: application/json header, the response Content-Type header randomly changes between application/json and text/plain. It doesn't seem to be predictable which I get, but this is just repeatedly making the exact same request with no changes to URL, headers, or body.
Description
Description
Event Timeline
Comment Actions
We only return application/json so the Accept header do not change anything. It's probably caching layer problem. So the first time you are getting application/json cuz it returns from the API second time it returns from cache and falls back to default content type.