To keep a dated record of a web page, save at least two formats, then get a trusted timestamp on their hashes. A full-page PNG records what a visitor saw. A browser-recorded WARC records what the server sent. Neither file can prove its own date. We archived two live pages all three ways on 1 November 2026, and each format lost something the others kept.
This is a technical comparison. What counts as a sufficient record for a regulator or a court is a question for your lawyer.
The test
We used two public pages that fail in different ways:
Each page was saved as a full-page PNG and a PDF using Puppeteer, and as two different WARCs: one from wget and one recorded from the browser's own traffic. A WARC is a web archive file. The format stores harvested responses along with their protocol details and a capture time.
To test the WARCs, we replayed each one in Chrome with request interception, answering only from the file and blocking everything else.
The results
| PNG | PDF | WARC from wget | WARC from browser |
|---|
| GOV.UK size | 734 KB | 571 KB | 405 KB | 218 KB |
| crates.io size | 475 KB | 486 KB | 2.0 MB | 506 KB |
| Looks as the visitor saw it | Yes | No on GOV.UK | GOV.UK only | GOV.UK exactly, crates.io apart from its chart |
| Searchable text | No | Yes | What was captured | Yes |
| Hidden tabs included | No | On GOV.UK, yes | Yes | Yes |
| HTTP status and response headers | No | No | Yes | Yes, as Chrome reports them |
| crates.io replays offline | n/a | n/a | No | Yes |
| Same hash on a second capture | Yes in our paired runs, but see below | No | Not tested | Not tested |
The sizes come from one run each, and they depend on the page. Don't read them as a ranking.
Screenshots: faithful, but only to one state
The PNG was the only format that recorded the visible state exactly, including GOV.UK's cookie banner and its green panel. It also froze relative text: crates.io gave the release date as "4 months ago", and the image will say so for good.
It missed everything that wasn't on screen. GOV.UK's HTML holds 21 table cells and headings mentioning St Andrew's Day or the Battle of the Boyne, which belong to the Scotland and Northern Ireland tabs. None of them was visible at capture time, so none is in the image. The text isn't searchable either, and links are lost.
Two captures of each page, moments apart, gave byte-identical PNGs. That didn't last. crates.io has a downloads chart that animates, and when we captured the page six more times as soon as the network went quiet, the results varied:
| crates.io chart in 6 fresh captures | Captures |
|---|
| Curves fully drawn | 2 |
| Curves partly drawn, 26,455 and 37,112 pixels different | 2 |
| Axes only, no curves | 2 |
So a screenshot is faithful to one instant, which may be mid-animation. Matching hashes mean nothing visible changed, but different hashes don't mean the page did. Look at each capture before you seal it.
PDFs: a different rendering of the page
A PDF is not a picture of the screen. Puppeteer's docs say that page.pdf() by default produces colours modified for printing, and print stylesheets can change far more than colour.
On GOV.UK, that changed the content:
| GOV.UK | Screen PNG | PDF, default print media | PDF, screen media |
|---|
| Scotland and Northern Ireland dates | Hidden | All present | Hidden |
| Cookie banner | Shown | Absent | Shown |
| Pages, same margins and A4 paper | n/a | 21 | 9 |
So the default PDF held more of the page's information than the PNG, and it looked less like what a visitor saw. Neither is wrong, but your record should say which one you kept. To match the screen, call page.emulateMediaType('screen') before page.pdf().
PDFs kept searchable text and working links: pdfinfo -url listed links in both files. Their hashes changed on every capture, even when the page hadn't. Comparing the two crates.io PDFs byte by byte, only 4 bytes differed, all in the two timestamp fields. The GOV.UK files differed in 2,681 bytes. Don't use a PDF's hash to detect whether a page has changed; compare extracted text instead.
Here is the capture code we ran for both formats:
import puppeteer from 'puppeteer';
import { writeFileSync } from 'node:fs';
const [url, name] = process.argv.slice(2);
const browser = await puppeteer.launch({ args: ['--disable-gpu'] });
const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 800 });
await page.goto(url, { waitUntil: 'networkidle2', timeout: 60000 });
writeFileSync(`${name}.png`, await page.screenshot({ fullPage: true }));
writeFileSync(`${name}.pdf`, await page.pdf({
format: 'A4',
printBackground: true,
displayHeaderFooter: true,
headerTemplate: '<span class="url" style="font-size:8px"></span>',
footerTemplate: '<span class="date" style="font-size:8px"></span>',
margin: { top: '1.5cm', bottom: '1.5cm', left: '1cm', right: '1cm' },
}));
await browser.close();
The header and footer print the address and date on each page. That date comes from the machine's clock, so it is a label and not evidence.
WARC: the richest record, if the capture worked
WARC keeps what the other two can't: status codes, response headers and every file behind the page. Each record also carries a WARC-Date, defined by the spec as the moment capture began. GOV.UK's response included the server's own Date header too, which gives a second reading to compare with your clock.
Writing one takes a single command, using the --warc-file option. $UA holds a browser user-agent string:
wget --user-agent="$UA" --header='Accept: text/html,*/*' \
--page-requisites --span-hosts --warc-file=crates --warc-cdx -P site \
https:
On GOV.UK this worked: the replayed screenshot was pixel-identical to the live capture. On crates.io, wget produced a file that passes warcio check and can't rebuild the page. Here is what each WARC held:
| crates.io responses | wget | Browser recording |
|---|
| Total | 119 | 97 |
| Font files | 112 | 5 |
| JavaScript files | 0 | 65 |
| API responses | 0 | 4 |
| Requests answered during replay | 7, with 34 missing | 97, with 0 missing |
Wget followed the font links in the CSS but didn't run the page, so it never asked for the code or the data. Before we set the Accept header, crates.io answered it with a 404, and that error was all the WARC contained.

The browser recording replayed with the same text as the live page. Its screenshot showed the chart with axes only, which is one of the states the live page also produced, so we can't call that a replay fault. GOV.UK's replay was pixel-identical.
The test that catches the wget failure is a replay, not a look at the file size. warcio check verifies digests, which says nothing about whether a page can be rebuilt.
For JavaScript-heavy pages, record from a browser. Our recorder was a short test script built on Puppeteer's response events and warcio. It stored bodies and headers as Chrome reported them, without compression details or request records, so it isn't a substitute for a proper tool. Browsertrix Crawler is a browser-based crawler that outputs WARC and WACZ files. We didn't run it for this article.
A replay is not a frozen page
Replaying a WARC runs the page's JavaScript again, using today's clock. We replayed the crates.io recording with Chrome's clock moved forward a year:
| Replay clock | Release date shown |
|---|
| 1 November 2026 (capture day) | 4 months ago |
| 1 November 2027 | over 1 year ago |
The stored data hadn't changed, but the rendered page had. GOV.UK's text was identical under both clocks. So keep a PNG beside the WARC: the PNG shows how the page appeared on the day, and the WARC shows what it was made from.
Proving the date
None of these files can prove when it was made. Our PNGs carried no date at all, PDF dates come from the capturing machine, and anyone can rewrite a WARC-Date.
An outside timestamp solves that. Under RFC 3161, a Time Stamp Authority signs a hash together with the time, giving proof that the data existed at that instant. It sees only the hash, so the page's content is never sent to it.
We hashed the files into a manifest and timestamped it with FreeTSA, a free public authority that we used for this test. Pick your authority based on your own requirements.
url=https:
{ echo "url: $url"; shasum -a 256 gov-1.png gov-1.pdf gov.warc.gz; } > manifest.txt
openssl ts -query -data manifest.txt -sha256 -cert -out manifest.tsq
curl -sS -H 'Content-Type: application/timestamp-query' \
--data-binary @manifest.tsq https:
openssl ts -reply -in manifest.tsr -text | grep -E 'Status:|Time stamp:'
The output we got:
Status: Granted.
Time stamp: Nov 1 09:20:25 2026 GMT
Verifying takes the authority's certificates, which FreeTSA publishes:
openssl ts -verify -in manifest.tsr -data manifest.txt -CAfile cacert.pem -untrusted tsa.crt
Then we tried to break it:
| What we changed | Check | Result |
|---|
| Nothing | openssl ts -verify | Verification: OK |
| One date in the manifest | openssl ts -verify | Verification: FAILED (message imprint mismatch) |
| One pixel in the PNG | shasum -a 256 -c | gov-1.png: FAILED, other two files OK |
| "25 December" to "26 December" in the WARC, leaving its digests alone | warcio check | Fails, exit code 1 |
| The same edit, rewritten with warcio so digests were recalculated | warcio check | Passes all 86 digest checks, exit code 0 |
| That rewritten WARC against the manifest | SHA-256 | Different hash |
The fifth row matters most. Digests inside a WARC catch accidental damage, not deliberate edits, because whoever changes the file can recalculate them. Only a hash held outside the file, sealed by someone else's signature, catches that.
A timestamp has limits too. It shows the files existed by that time, not that they are a true copy of the page. It also doesn't say who made them: the RFC says the authority doesn't identify the requester. An independent copy can help with that gap, such as a capture made by a third party. We couldn't test one here.
What to keep
- Capture a PNG and a browser-recorded WARC. The PNG shows the appearance and the WARC shows the content. Add a PDF if people need to read or search the record without special software.
- Check every WARC by replaying it offline, before you need it. Don't rely on
warcio check alone.
- Open what's hidden and let animations finish. Tabs, accordions and "show more" panels aren't in a screenshot, and charts may be half drawn. Capture each state you need.
- Write a manifest with the address, the tool versions and the SHA-256 of each file.
- Timestamp the manifest straight after capture, and store the
.tsr and the authority's certificates with the files.
- Keep the files somewhere they can't be overwritten, and check the hashes on a schedule.