json - Checking for new data on server -


i have application downloads data via nsurlconnection in form of json object; displays data user. new data may created on server @ point, best way 'realise' , download data?

at moment planning on having application download data every 30-40 seconds, , check data downloaded against current data: if same nothing; if different, procede alterations. however, seems bit unnecessary, data may not change while. there more efficient way of updating application data when new server data created?

use etag if server supports it.

wikipedia etag
"if resource content @ url ever changes, new , different etag assigned."


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -