Web Notes

A short note on HTTP caching

Browsers can reuse a response while it is fresh. The Cache-Control header tells them how long they can wait before checking the server again.

When a response expires, an ETag lets the browser ask whether the file has changed. A 304 Not Modified response allows it to use the copy it already has.