SpinTheMic
Pro

Explain it in 60 seconds

Cache-Control strategies for different resources

Frontend Engineering · Web Performance · Intermediate

How should Cache-Control headers differ for HTML, static assets and API responses?

What a strong answer covers

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

  • Hashed assets: max-age=1 year, immutable.
  • HTML: no-cache (revalidate) or short max-age.
  • APIs: private/no-store for user data; short s-maxage for shared.
  • stale-while-revalidate for freshness+speed.
  • CDN vs browser directives.
Practise this topic

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

See all topics