ETag Weak vs Strong
Classifica um ETag como weak (W/"...") ou strong. Weak é igualdade semântica, strong é byte-a-byte.
Tipo
—
What that W/ prefix on an ETag means
You are chasing a 304 that never fires, or one that fires when it should not, and you noticed some ETags come back as "a1b2c3" while others come back as W/"a1b2c3". The difference is not cosmetic: it decides which conditional requests the server can honor. Paste the value from the header and the page tells you whether that ETag is strong or weak, or whether the format is off spec.
The rule comes from RFC 9110. An ETag is a quoted string, optionally prefixed with W/ using a capital W, and that prefix is case sensitive. Strong means byte-for-byte equality. Weak means the resource is semantically the same even though the bytes changed. That is exactly why compression layers tend to downgrade a strong ETag to a weak one: the content is unchanged, the representation is not.
The practical consequence shows up in conditional requests. If-None-Match, the ordinary 304 path, uses weak comparison and accepts either kind. If-Range and If-Match require strong comparison, so with a weak ETag a resumed download starts over instead of continuing where it stopped. If you derive the ETag from a hash of the bytes you send, go strong; if you derive it from a row version in the database, weak is the honest choice. The check reads only the pasted text.
Frequently asked questions
Can I write the prefix as lowercase w/?
Does it make sense to send both ETag and Last-Modified?
Does the tool compute the ETag for my file?
Related Tools
HTTP Status Code Lookup
Consulta significado de códigos HTTP de 1xx a 5xx.
HTTP Request Builder
Build an HTTP request (URL, method, headers, body) and generate snippets in cURL, fetch, axios, Python requests and Go net/http. Everything in your browser.
MIME Types (Reference)
Searchable MIME type table — search by extension (.json, .pdf) or MIME (application/json, image/png). Includes common formats for web, audio, video, fonts and documents. Everything in your browser.