Re:Why I link to Wayback Machine instead of original web con...
by ponker on Tuesday September 08, 2020 @07:23PM
(#24414841)
I've found that web pages have so much dynamic content these days that even something that feels relatively static generates two different hashes almost on every pageload.
[ Parent
| on HN ]
Re:Why I link to Wayback Machine instead of original web con...
by javajosh on Tuesday September 08, 2020 @09:39PM
(#24415805)
Indeed. I don't think you could or should hash the DOM - not least of which because it is, in general, the structured output of a program. Ideally you could hash the source. This might be a huge problem for single page applications, except you can always pre-render a SPA at any given URL, which solves the problem. (This is done all the time - the most elegant way is to run e.g. React on the server to pre-render, but you can also use another templating system in an arbitrary language, although you end up doing all features maybe not twice, but about 1.5x).