Skip to content

Async Requests

It may be desirable to asynchronously request Imagizer URLs which will pre-warm Imagizer's local cache.

Use the custom HTTP method GET_ASYNC to perform an asynchronous request. An HTTP status code of 202 will be returned immediately. Meanwhile, Imagizer will continue to process and eventually cache the image for all subsequent requests.

Example: Asynchronously scale an image to a width of 400px then cache the image.

bash
curl -X GET_ASYNC "http://{host}/image.jpg?width=400"