I'm working on a Phonegap app that needs to compare a local JSON file with the latest version available remotely. If the remote version is newer, I want to update the local JSON.
To optimize bandwidth usage, I am looking for a way to perform this version check without downloading the entire remote data. Perhaps by just checking the headers...
In my search for a solution, I came across discussions about using the "HTTP ETag header" in threads like this one
Does anyone have suggestions on how to implement something like this using pure Javascript?
Thank you in advance.