HTTP Caching

Talk it through out loud with your AI coach.

The problem

  • medium
  • Pro

After every deploy some users see a broken page, because their browser mixes the new HTML with old cached JavaScript. Explain how HTTP caching headers work, and how you'd set them for HTML and for static assets.

What a strong answer covers

  • The header that controls reuse and what its main settings mean.
  • How file names can make long caching safe for built assets.
  • Why the HTML needs a different policy.
  • How the browser checks whether a cached copy is still current.

Common mistake: Caching HTML for a long time, so users keep pointing at assets that no longer exist.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud