Displaying 1 result from an estimated 1 matches for "periodic_updater".
2008 Apr 10
2
Ajax Request Caching by Timestamp?
...erver selectively send back data,
instead sending nothing ''0'' if user has the newest data.
My example is a presence monitor, and it seems like the logic is:
- Rails caches the ''current user'' list fragment with a timestamp.
- User requests a view that contains a periodic_updater to the current
user list (and the updater passes the timestamp in its requests back to
server)
- the server compares it to the current timestamp on that fragment. if
its identical. send back a 0/nochange notice. otherwise send back the
newer data with its timestamp.
- now further xhr requests from...