How to validate icon updates with an HTTP ETag
Answer in brief
Use an ETag as a validator when a resource can change at the same URL. A client can send If-None-Match on revalidation and receive 304 when the representation still matches.
Check the second load
Load a mutable team avatar, note its ETag and then trigger revalidation. Inspect the conditional request and response. Replace the avatar and verify a subsequent revalidation receives the new representation and a corresponding validator.
Check whether the validator survives a real change
Make a visible change to one test avatar while keeping its URL stable. Revalidate using the old ETag and inspect the returned status and body. An unchanged ETag paired with genuinely different bytes warrants checking how the origin or build pipeline computes that validator.
Sources
- [1] ETag header - HTTP — MDN Web Docs, accessed November 23, 2026
Frequently asked questions
Does ETag force a request on every visit?
Freshness policy controls when a cached response needs validation. The ETag is used when validation occurs.