QuestionQ40

Using APIs

An ETag header is included in the HTTP response for an API resource.

What are two advantages of using the ETag value in later interactions involving that same API resource?

Choose two
  • A caching and optimization of response payloads
  • B creating conditional requests
  • C categorizing and comparing this API resource with others
  • D checking the integrity of the resource
  • E requesting the list of operations authorized for this resource
Explanation

An ETag is a validator for a resource representation. It supports conditional HTTP requests, including cache validation, so a client can determine whether a stored representation is still current and avoid transferring an unchanged response payload. It can also be used with preconditions such as If-Match or If-None-Match to make requests conditional on the representation’s ETag.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!