Ctrl K
Frontend · Junior · Theory

How does HTTP caching work in the browser?

~4 min by voice

How to approach it

This checks whether you understand the mechanics of the HTTP cache: which headers control freshness and revalidation, how no-cache differs from no-store, and whether you can apply it in practice, so static assets are cached for a long time and users don't get stuck on an old version after a deploy.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsAfter a deploy, some users keep seeing the old version of the SPA or get a blank white screen. How would you configure caching so this doesn't happen? Mid-levelWhat is CORS, and why does the browser block a request to an API on a different domain? JuniorHow would you set up HTTP caching for an SPA: for the HTML, for the JS and CSS bundles, and for API responses? How did the move to HTTP/2 affect this? Senior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~4 min