Don't assume options is not null.
etag check should work if authentication type is basic