Reimplemented the resource resolution with max response size support.