SpinTheMic
Pro

Interview practice question

Making REST responses cacheable

System Design · APIs and Communication · Intermediate

Your product API returns the same data to everyone, but every request hits the backend. How do you make it cache-friendly?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Use GET with stable URLs.
  • Cache-Control max-age / s-maxage.
  • ETag for revalidation.
  • Normalise query parameters.
  • CDN in front.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics