As discovered in T237319, when responding with HTTP 304, the response of Special:EntityData contains body, which against HTTP specification.
nginx does seem to have problem handling this non-standard behaviour, which in turn bubbles up to issues at ATS level.
Acceptance criteria:
- When Special:EntityData response with HTTP status code 304, response body should not be set