Fix the etag implementation to handle variance in maxsize