Caching

Pass cache_ttl (seconds, up to 7 days) on any render. The result is stored keyed by a hash of the effective render parameters; any identical request inside the TTL returns the stored bytes immediately.

{ "url": "https://example.com", "full_page": true, "cache_ttl": 3600 }

The two things to know

Patterns

Use caseSuggested TTL
Link previews / unfurls86400 (1 day)
OG images for published posts604800 (7 days, the max)
Monitoring / visual diffs0 (always fresh)
Invoices / PDFs with unique data0 — every render is unique anyway

HTTP caching is layered on top: cached-able responses carry Cache-Control: public, max-age=…, so browsers and CDNs can avoid hitting us at all.