Skip to main content
Run cache warmers after a fresh deployment or restart to ensure the first real visitors don’t experience slow load times while the IIIF server processes images on demand.

cache mirador

Pre-warm the Mirador IIIF viewer cache for paged content items. When the IIIF server has not yet cached a paged item’s child images, the first visitor to that page experiences slow load times while the server processes the images. This command fetches a list of paged content URLs from a JSON endpoint and renders each one in a headless browser so the IIIF server caches the images before real visitors arrive.
sitectl isle cache mirador
FlagDefaultDescription
--endpointJSON endpoint returning an array of objects with a url field. Required.
--workers2Number of concurrent browser workers.

When to run it

Run cache mirador after:
  • Deploying a new version of your ISLE site.
  • Restarting the IIIF server.
  • Ingesting a large batch of new paged content.
The command fetches paged content URLs from the --endpoint JSON feed and renders each one in a headless browser, causing the IIIF server to cache the child images before visitors arrive.