Added support for cached requests.