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.| Flag | Default | Description |
|---|---|---|
--endpoint | JSON endpoint returning an array of objects with a url field. Required. | |
--workers | 2 | Number of concurrent browser workers. |
When to run it
Runcache mirador after:
- Deploying a new version of your ISLE site.
- Restarting the IIIF server.
- Ingesting a large batch of new paged content.
--endpoint JSON feed and renders each one in a headless browser, causing the IIIF server to cache the child images before visitors arrive.
