Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Do not let your CDN betray you: use subresource integrity (2015). Parent comment
You create a salt, send it to server.
The server adds the salt to the file, hashes it, then sends the hash back. You check this against the cached data.
When the hash doesn't match, you know either the cached version, or the server version, is wrong.
There are no comments on this comment yet.
You create a salt, send it to server.
The server adds the salt to the file, hashes it, then sends the hash back. You check this against the cached data.
When the hash doesn't match, you know either the cached version, or the server version, is wrong.