caching and recording requests.