API Design · Junior · Question 47 of 75

Why might an API compress responses?

Explanation

Clients send Accept-Encoding; servers answer with Content-Encoding. Compression costs CPU, so proxies or CDNs often do it.

Further reading

Problem with a question

API Design · Junior · question 47

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz