A new cache domain for screenshots

Cached screenshots and stored page content move to a new domain, screenshotonecache.com, to strengthen security.

Changelog1 min read

Written by

Dmytro Krasun

Published on

Why

Some of the files the API stores for you are HTML that comes from the pages you render, for example page content and screenshots in the html format. Serving them from a subdomain of screenshotone.com mixed content from any website with ScreenshotOne’s own domain.

Stored files now live on a separate domain, screenshotonecache.com, with a stricter security policy:

  • stored HTML is served with a sandboxing content security policy, so it never runs scripts and never submits forms;
  • browsers never guess a file’s type from its contents, so a file is always handled as the type it is stored with.

What changed

WhatBeforeNow
Cached screenshots: cache_url, screenshot_url and the X-ScreenshotOne-Cache-URL headercache.screenshotone.comfiles.screenshotonecache.com
Page content from metadata_contentcontent.screenshotone.comcontent.screenshotonecache.com

Only the host changes: the paths, the expiration and the way you request these files stay the same. The API no longer returns URLs on the old cache.screenshotone.com and content.screenshotone.com hosts.

What to check

Most integrations need no changes, because they use the URLs the API returns. Update your configuration if you allow hosts explicitly, for example:

  • an img-src or connect-src directive in your content security policy;
  • images.remotePatterns in Next.js;
  • a firewall or proxy allowlist.

Allow files.screenshotonecache.com and content.screenshotonecache.com there. If you build these URLs yourself instead of using the returned ones, switch to the new hosts.

Read more product updates

New features, bug fixes, and optimizations...

View all product updates
Internal errors down to 0.003%

Internal errors down to 0.003%

7 internal errors out of 235,027 rendering requests in 24 hours, down from about 1% a month ago, and what causes the rest.

Read more

1 min read

Fail if there is nothing to click on

Fail if there is nothing to click on

A new option has been added to fail or not to fail the screenshot rendering if there is nothing to click on.

Read more

1 min read

ScreenshotOne has been launched

ScreenshotOne has been launched

ScreenshotOne launched as a fast and reliable screenshot API with a free plan, signed requests, ad blocking, and full-page screenshots.

Read more

1 min read

Automate website screenshots

Exhaustive documentation, ready SDKs, no-code tools, and other automation to help you render website screenshots and outsource all the boring work related to that to us.