Strong and Weak Validation
The ETag mechanism supports both strong validation and weak validation. They are distinguished by the presence of an initial "W/" in the ETag identifier, as:
"123456789" -- A strong ETag validator W/"123456789" -- A weak ETag validatorA strongly validating ETag match indicates that the content of the two resources is byte-for-byte identical and that all other entity fields (such as Content-Language) are also unchanged. Strong ETags permit the caching and reassembly of partial responses, as with byte-range requests.
A weakly validating ETag match only indicates that the two resources are semantically equivalent, meaning that for practical purposes they are interchangeable and that cached copies can be used. However the resources are not necessarily byte-for-byte identical, and thus weak ETags are not suitable for byte-range requests. Weak ETags may be useful for cases in which strong ETags are impractical for a web server to generate, such as with dynamically-generated content.
Read more about this topic: HTTP ETag
Famous quotes containing the words strong and, strong and/or weak:
“The theory of rights enables us to rise and overthrow obstacles, but not to found a strong and lasting accord between all the elements which compose the nation.”
—Giuseppe Mazzini (18051872)
“The enemy is like a woman, weak in face of opposition, but correspondingly strong when not opposed. In a quarrel with a man, it is natural for a woman to lose heart and run away when he faces up to her; on the other hand, if the man begins to be afraid and to give ground, her rage, vindictiveness and fury overflow and know no limit.”
—St. Ignatius Of Loyola (14911556)
“The enemy is like a woman, weak in face of opposition, but correspondingly strong when not opposed. In a quarrel with a man, it is natural for a woman to lose heart and run away when he faces up to her; on the other hand, if the man begins to be afraid and to give ground, her rage, vindictiveness and fury overflow and know no limit.”
—St. Ignatius Of Loyola (14911556)