fix weird etag match failure under some environments