Etag support in querying middleware