We're trying to implement an eTag to reduce query time to a remote API. They've provided support on their end and are generating an ETag, a subsequent GET by us, with an ETag header doesn't seem to generate the response I'd hoped, and before I go back to the vendor, I wondered if there was something tricky in the way the quotes need to be created around the ETag string?
Discussion posts and replies are publicly visible
Can you provide a few more details? An ETag is just a string. What do you mean with tricky quotes?
Sure, when I read the documentation regarding implementation, the surrounding quotes seem fluid, so I was wondering if there was something tricky I was missing. For example:
The Mozilla Developer doc page gives these two examples:
ETag: W/"<etag_value>" ETag: "<etag_value>"
That's a nice documentation .... in my experience, header values typically do not include the quotes.
I think the disconnect that I am experiencing is on the rest API side, I think it's ignoring my eTag and returning the full body despite my tag matching what's in the response. Thanks for the confirmation that I'm not missing the mark.