ETag: An opaque token identifying the resource version. Used with If-None-Match for conditional GETs. An ETag is a version identifier the server sends with a response, such as ETag: "a1b2c3". When the resource changes, the ETag changes too. On the next request, the browser sends the value back in If-None-Match. If the resource has not changed, the server replies 304 Not Modified with no body, and the browser uses its cached copy. That saves bandwidth while still checking for updates.
ETags are also useful for safe updates in APIs. A client sends If-Match with the ETag it last saw. If someone else changed the resource in the meantime, the server refuses with 412 Precondition Failed instead of silently overwriting their work. Make sure ETags are consistent across servers behind a load balancer, or caching will break.
Use when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.
'Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance.'
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.