For Web App as the client, you want a real-time synchronization?
You may need to use a timer or sleep with interval to call a function that communicate with the APIs. The browser also has localStorage or cache or cookie to store the local copy. If you want more security, you may want to encrypt the data using AES or other algorithm.
If it is just a passive local storage then just ignore the timer.