Mojira Archive
WEB-4448

Constant Cloudfront miss on api.mojang.com

Edit: resolved, this was due to a failing proxy i used. I just didn't think about that and the proxy worked for EVERYTHING else.

 

api.mojang.com/user/profiles/[UUID]/name will always respond with a empty response, telling the client to rely on its cache (this happens to both browsers AND custom clients). This even happens when the requested data was updated, rendering that part of the API essentially useless. Such a response would be:

 HTTP/1.1 200 OK
 Content-Type: application/json
 Content-Length: 267
 Connection: close
 Accept-Ranges: bytes
 Cache-Control: no-store
 Date: Sat, 01 May 2021 11:15:14 GMT
 Server: Restlet-Framework/2.4.1
 Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
 X-Cache: Miss from cloudfront
 Via: 1.1 919527ccf4988ee440e4f4dab0b5b5be.cloudfront.net (CloudFront)
 X-Amz-Cf-Pop: CDG50-C1
 X-Amz-Cf-Id: qPoloOCBJDxXDs6Wz4njlXjXDf_282L69ZHZhFmR5cbhfWEW6SYleg==
 
 

(Yes, that is the entire response, theres no content.)

 

The requst used is:

 GET /user/profiles/[UUID]/name HTTP/1.1
 Host: api.mojang.com
 Connection: Close
 
 

(I also tried with two headers: Pragma: public and Pragma: no-cache, both didnt work)

 

The API will sometimes, but extremely rarely, respond with correct content, but this is, as mentioned, very rare.

Invalid

TudbuT

2021-05-01, 11:25 AM

2021-05-01, 03:31 PM

2021-05-01, 03:31 PM

1

1