Skip to content

How to tell if an image has been pre-warmed? #145

Open

Description

@bunnyfly

Is there any way to tell if an image has been pre-warmed yet?

I want to warm images asynchronously in a worker process, but this means thumbnail URLs I'd send back in my API requests will be 404s for a bit. In the meantime, I'd like to just send the original image so clients have something to display, but how can I tell whether to return the original image or warmed URLs?

If needed, I could make a field "is_image_warmed" to go along with every versatile image field I have and manually update that myself. But I'd rather not do that if there's an already available way.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions