use the persistent storage api if available for storing things on the device https://developer.chrome.com/apps/offline_storage#asking_more