If you add `http_accept_encoding` to the cache key then you have 2 entry in the cache. One for the XML and one for the json and, AFAIK there is no way to purge both entries with one request.

If you don't specify `http_accept_encoding` then the 2 requests have the same cache key so your guess is correct: you get an XML for the second request.