Skip to content

Etags implementation in the API

vamsyvaraganti edited this page Dec 28, 2017 · 2 revisions

An entity tag (ETag) is an HTTP header used for Web cache validation and conditional requests from browsers for resources.

The Open Event API accepts two types of headers:

  • If-Match: Ensures the response is returned only if the ETag of the current response matches any of the ETags in the If-Match header. If none of the given ETags match, a 412 Precondition Failed status code will be returned.
  • If-None-Match: Ensures the response is returned only if the ETag of the current response does not match any of the ETags in the If-Match header. If the given ETags matches, a 304 Not Modified status code will be returned.

Both of the above headers accept a comma separated list of Etags.