API Design · Middle · Question 25 of 75

Why is the Vary header important for caching API responses?

Explanation

Missing Vary can make a CDN serve a German response to an English user, or one user's data to another.

Further reading

Problem with a question

API Design · Middle · question 25

Test yourself

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

Take this quiz