Adding check for network state for faster caching of request