ETag
An ETag (entity tag) is an identifier a server assigns to a specific version of a resource, often a hash of its contents. Clients send it back via the If-None-Match header so the server can reply 304 Not Modified when nothing has changed, saving bandwidth. It also helps detect mid-update conflicts.
The everyday use of ETags is conditional requests. The first response includes an ETag header; the browser caches it. On the next request it sends If-None-Match: "<etag>". If the resource is unchanged, the server returns an empty 304 Not Modified, and the browser reuses its cached copy — no body transferred. This is a major bandwidth saver for CDNs and APIs alike.
ETags also enable optimistic concurrency. A client can send If-Match: "<etag>" on an update so the write only succeeds if the resource hasn't changed since it was read. If someone else modified it first, the server returns 412 Precondition Failed instead of silently clobbering their change.
In object storage, the ETag of an uploaded object is frequently a content hash, which lets you verify integrity after upload — a useful check at the end of a multipart transfer.