Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 25

How do Content-Encoding and Transfer-Encoding differ in what they describe?

  1. Content-Encoding is a property of the representation; Transfer-Encoding is a property of the message and may be changed in transitالإجابة الصحيحة
  2. Both describe the message, but Content-Encoding survives caching while Transfer-Encoding does not
  3. Both describe the representation, but Transfer-Encoding is restricted to the chunked coding
  4. Content-Encoding is applied by intermediaries; Transfer-Encoding is applied by the origin server

الشرح

Because Content-Encoding belongs to the representation, a gzipped variant is a different representation, needing its own entity tag, and byte ranges are computed over the encoded octets. Transfer-Encoding applies only during message transfer, so any recipient along the chain may decode it or add a coding as long as the field is updated.

تابع هذا الاختبار

بدء التدريب
السؤال 25: How do Content-Encoding and Transfer-Encoding differ in… · HTTP Semantics · Questena