'Force chrome to write information in memory to Harddrive

I store failed POST requests when offline using a service worker to IndexedDB. Then when there is a connection again, it syncs the requests. The problem I have is if a kiosk goes offline, users often pull out the power to restart the kiosk. And it seems that Chrome delays storing cookies/data to HDD, but keeps it in memory until chrome is shutdown, and hence the required information is lost if the power is cut. Is there a way to tell Chrome, hey please store items to memory immediately?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source