1
0
Fork 0
mirror of https://github.com/weserv/images.git synced 2026-04-26 03:15:49 +03:00
Caching of images (server side caching)
Kleis Auke Wolthuizen edited this page 2025-07-01 14:44:54 +02:00

We cache images in different ways, depending on the rate of requests, no more than 31 days, and most often at least 7 days.

We utilize the proxy cache in nginx to accomplish this, on top of that, Cloudflare caches the most frequently accessed images globally.

Our servers only initiate a refresh when all caches have expired, and only when the image is still being requested by end users.

The rules we use for server-side caching are different from the ones you see in the headers we provide for browsers.