Confirmed users
176
edits
Line 125: | Line 125: | ||
'''NOTE:''' this is like a precondition (If-Unmodified-Since or If-Match), and there is a response 412 Precondition Failed. We could use those? We are using float timestamps instead of HTTP dates; we could use X-If-Unmodified-Since or use ETag. I don't believe, but am not sure, that we need to understand the timestamps as a newer/older kind of thing. At least for this case (<tt>last_modified</tt> is different). | '''NOTE:''' this is like a precondition (If-Unmodified-Since or If-Match), and there is a response 412 Precondition Failed. We could use those? We are using float timestamps instead of HTTP dates; we could use X-If-Unmodified-Since or use ETag. I don't believe, but am not sure, that we need to understand the timestamps as a newer/older kind of thing. At least for this case (<tt>last_modified</tt> is different). | ||
'''NOTE:''' using <tt>last_modified</tt> on the client makes us vulnerable to time differences between client and server. We may not really need to use <tt>last_modified</tt> and could just send everything that hasn't been sent, then no local timestamps will be used. | |||
=== Deleting the data === | === Deleting the data === |