Digest response HTTP header provides a digest of the requested resource.
In RFC 7231 terms this is the selected representation of a resource. The selected representation depends on the
Content-Encoding header values: so a single resource may have multiple different digest values.
The digest is calculated over the entire representation. The representation itself may be:
Digest: <digest-algorithm>=<digest-value> Digest: <digest-algorithm>=<digest-value>,<digest-algorithm>=<digest-value>
SHA-512. Some of the supported algorithms, including
MD5are subject to collisions and are thus not suitable for applications in which collision-resistance is important.
SHA-256uses base64 encoding.
Digest: sha-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE= Digest: sha-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=,unixsum=30637
|Resource Digests for HTTP|
This header was originally defined in RFC 3230, but the definition of "selected representation" in RFC 7231 made the original definition inconsistent with current HTTP specifications. When released, The "Resource Digests for HTTP" draft therefore will obsolete RFC 3230 and will update the standard to be consistent.
© 2005–2020 Mozilla and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.