What is the best way to implement the following scenario in a React Native app?
- Make an HTTP request to the server, get a JSON response and an ETag header.
- Save this JSON response in a way that will persist even after the app is restarted by the user.
- Whenever this HTTP request is repeated, send an If-None-Match header.
- When you get a "Not Modified" response, use the version in the persisted cache.
- When you get a "Successful" response (meaning the response has changed), invalidate the persisted cache, save the new response.
Does React Native have a component that does these things out of the box? If not, what is the most common way people use to handle this?