Added getCachedDataFromURL method which returns cached data only if exists.