Skip to content
shotsmith
Features Docs Guides Pricing Changelog Sign inStart free

Caching

With cache=true, a request whose rendering options match an earlier successful render within cache_ttl seconds (default 4 hours, up to 30 days) returns the stored file immediately. Cache hits are free and show X-Cache: HIT.

Options that don’t affect the pixels, such as response_type or webhook_url, don’t affect the match. Use cache_key to force a separate entry, for example the current date to get one fresh capture per day.

Cached files are kept for your plan’s history period and then deleted.