API Testing · Senior · Question 40 of 75

What is a good strategy for testing a CDN or cache in front of an API?

Show the answer

Correct answer: Check cache keys, Vary, private data and purge after updates

Explanation

Wrong cache keys can serve one user's data to another or ignore language headers. Tests send varied headers and check hits and misses.

Further reading

Problem with a question

API Testing · Senior · question 40

Test yourself

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

Take this quiz