Skip to content

Image Redirect Caching with Seed #121

@benkaiser

Description

@benkaiser

Is there a particular reason redirects are instructed to not cache + use a 302 redirect (instead of 301), even when calling with a specific seed url?

I am calling endpoints such as:

https://picsum.photos/seed/7890/400/200

Which will always give me the exact same image. So why instruct the browser to not cache? Seems like it increases the load on the service, and provides a poorer experience for users having to load the image every time it is rendered on the page (despite not changing).

This is a very low priority request, just curious to the background. Absolutely love the work here and this service is absolutely invaluable!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions