Right, if you get httpcode 304, do nothing. If you get 200, update the existing record or add new record. If you get anything else delete the existing record.
When updating a record, remember to delete all of its entries in refs before processing the links on the page.
When updating a record, remember to delete all of its entries in refs before processing the links on the page.