4 ms·
Does this also mean that, technically, I can edit the page and someone else, who connects after my edits, gets to see my edited page?
by tjallingt 11y ago
Does this also mean that, technically, I can edit the page and someone else, who connects after my edits, gets to see my edited page?
- Jonovono 11y agoI think you'd have to send them a link with the new hash in it. If you sent them the current page, the hash wouldn't match your changes.
- losvedir 11y agoSneaky! But, no, the server double checks that the content you're sending hashes to the correct thing.[0] [0] https://github.com/losvedir/ephemeral2/blob/master/web/channels/have_channel.ex#L21 https://github.com/losvedir/ephemeral2/blob/master/web/chann...
- jammaloo 11y agoAs mentioned on the page, it does a sha-256 hash of the content, which you can think of as a fingerprint of the page. If the content you get sent doesn't match that fingerprint, it will reject it.