Frontend · interactive
HTTP caching
Response headers tell the browser how long it may reuse a file without asking, and how to ask cheaply when it must check. Get them right and repeat visits load almost nothing; get them wrong and users see stale code after a deploy.
index.html304
Cache-Control: no-cache, ETag: "v41"
Asks “still v41?” and gets 304 Not Modified: tiny response.
app.3f9a1c.jsfrom cache
Cache-Control: public, max-age=31536000, immutable
Served from disk. No request at all.
logo.pngfrom cache
Cache-Control: public, max-age=3600
Within the hour: from cache.
/api/cartnetwork
Cache-Control: private, no-store
Never stored: always fetched fresh.
Hashed assets never hit the network again; the HTML costs one tiny 304; the API is always live.
Visit
Step 2 of 4 · read left to right
In production
Tools and technologies
Cache headers decide how repeat visits load.
Not tied to one language — use these names when you search docs or design a system.