This Cloudflare Worker service provides a simple and efficient solution for proxying and caching images. By leveraging Cloudflare Workers, you can offload image requests from your origin server, reduce latency, and enhance overall website performance.
-
Image Proxying: Directs image requests through the Cloudflare Worker, acting as a middle layer between clients and your origin server.
-
Caching: Implements a smart caching mechanism to store frequently requested images at the edge, reducing the load on your origin server and improving response times.
WHITELIST
: Array of whitelisted domains that are allowed to be proxied.CACHE_TTL
: Time-to-live (TTL) for cached images (in seconds).
media-proxy is licensed under the MIT License - see the LICENSE file for details.
For bug reports, feature requests, or contributions, please open an issue or submit a pull request on the GitHub repository.