Performing network requests from a cache