D
D
Dmitry Sviridov2020-04-15 22:13:51
go
Dmitry Sviridov, 2020-04-15 22:13:51

How to cache images in imgproxy?

I decided to use imgproxy for cropping images - and I don’t really understand: does it recreate the thumbnail with each request?
From the point of view of common sense, there must be some kind of cache of thumbnails (with the possibility of cleaning), because under load the server will lie down if there are a lot of pictures, and they will be cut with each request. Or is this thing not suitable for my task at all? The task is something like this: there are pictures on the server in a folder - you need to create thumbnails and webp on the fly. If I'm stupid, and the answer is in the documentation, poke your nose, please.

Upd: I understand that there is no cache in this caching server, and the problem is solved by caching in Nginx?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2020-04-15
@dimuska139

There is no cache. Caching is solved by any caching proxy or CDN.

It may be great to have built-in HTTP caching of some kind, but it is way better to use a Content-Delivery Network or a caching proxy server for this, as you will have to do this sooner or later in the production environment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question