Added offline support

Save as a cache file