Can't retreive updated backend document

My current scenario:

Assume userA (client) is editing a doc, userB (from web) then open docA and edit and successfully save it, ie. the doc is updated. (I do not place any locks and the option not to build conflict doc is checked)

userA then complete editing and before save, I set codes to check if the doc had been modified by someone else. I use the method of getdocumentbyid to retrieve corresponding backend doc in order to compare the 2 doc. However the doc retrieved doesn’t reflect any changes by userB, it is just the original doc. (I see the values using LS debugger) but I am sure the document has been updated by userB by viewing the doc on web.

Anything I am missing?

Subject: Can’t retreive updated backend document

That sounds thorough. You should be able to get a backend handle on a doc to see if it has changed. I assume you have already checked to see if the web update succeeded.