Ctrl K
Frontend · Senior · Theory

How 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?

~4 min by voice

How to approach it

This checks whether the candidate understands that different SPA resources need different caching policies: what can be cached forever, what needs revalidation, and what must never go into shared caches. It also looks at production pitfalls (old tabs after a deploy) and at how HTTP/2 changed the approach to bundling.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsHow does HTTP caching work in the browser? JuniorAfter 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-level

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