Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.snapopa.com/llms.txt

Use this file to discover all available pages before exploring further.

Optimize performance and reduce costs with caching and CDN storage.

Response Cache

Cache captures to avoid redundant processing for identical requests.
{
  "url": "https://example.com",
  "responseCache": {
    "enabled": true,
    "ttl": 86400
  }
}
ParameterTypeDefaultRange
enabledbooleanfalse-
ttlinteger8640060-2592000 (1min - 30 days)
noncestring-max 32 chars

Cache Key

Caches are keyed by a hash of the full request parameters. Same URL with different options = different cache entry.

Cache Busting

Use nonce to force a fresh capture:
{
  "url": "https://example.com",
  "responseCache": {
    "enabled": true,
    "ttl": 86400,
    "nonce": "v2"
  }
}

CDN Storage

All captures are stored on our global CDN. Configure storage duration and auto-refresh.
{
  "url": "https://example.com",
  "cdnTtl": 604800,
  "persistence": {
    "enabled": false
  }
}
ParameterTypeDefaultRange
cdnTtlinteger8640060-2592000
persistence.enabledbooleanfalse-
persistence.refreshIntervalinteger00 or 21600-2592000

Permanent Captures

Store captures indefinitely for archival or permalinks.
{
  "url": "https://example.com",
  "persistence": {
    "enabled": true
  }
}
Permanent captures are accessible via the Permalinks section in your dashboard.

Auto-Refresh

Automatically refresh captures at set intervals (minimum 6 hours).
{
  "url": "https://example.com",
  "persistence": {
    "enabled": true,
    "refreshInterval": 86400
  }
}
This is useful for:
  • Monitoring pages for changes
  • Keeping cached thumbnails up-to-date
  • Scheduled archiving

Cache Response Indicator

The response includes fromCache to indicate cache status:
{
  "success": true,
  "data": {
    "fileUrl": "https://cdn.snapopa.com/...",
    "fromCache": true
  }
}

TTL Reference

DurationSeconds
1 minute60
1 hour3600
1 day86400
1 week604800
30 days2592000