Interview practice question
Making GET endpoints cacheable
Backend Engineering · API Design · Intermediate
Your product catalog API is read-heavy. How can you use HTTP caching to reduce load?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Cache-Control headers (max-age, s-maxage).
- ETag / Last-Modified for revalidation.
- 304 Not Modified.
- Vary on relevant headers.
- CDN in front.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.