I have a JSON file which displays data from my MySQL database. I have an app that fetches and stores that data in the app on the first launch. It's stored in CoreData so the user doesn't have to be connected to internet to be able to use the app.
I'd like to update the data if anything has changed in the database. The first method I've been using is storing the total length of the JSON data fetched and then comparing it, but I was wondering if there was a better method to do this.
Could I fetch the modification date of the JSON file? If so, how?
Thanks