Stream: hapi
Topic: If-None-Match for interactions other than read
Jim Steel (Feb 10 2017 at 00:46):
Is there a way to set the If-None-Match header for interactions other than read (e.g. vread, search, GET operations)? I found http://hapifhir.io/doc_rest_etag.html, and I explored the API a bit, but can only find support for ifVersionMatches() on read requests.
James Agnew (Feb 11 2017 at 21:03):
Using ifVersionMatches()
is the only way currently (other than via a custom interceptor I suppose) but that covers read and vread.
Would you want that header anywhere else? FHIR doesn't really define a meaning for it for things like search..
Jim Steel (Feb 12 2017 at 23:14):
Any idempotent operation could be cached. For example, a $lookup request on an unchanged code system.
Last updated: Apr 12 2022 at 19:14 UTC