If the API supports ETags / Conditional GET, I think that would be a much simpler solution.
Just request the same call again from the server and you'll receive a 304 if it hasn't been updated.
No new code needed.
If the API supports ETags / Conditional GET, I think that would be a much simpler solution.
Just request the same call again from the server and you'll receive a 304 if it hasn't been updated.
No new code needed.