Skip to content

⛅ Optimize image handling with Cloudflare Workers — a simple and efficient solution for proxying and caching by offloading image requests from your origin server.

License

Notifications You must be signed in to change notification settings

szalovszky/media-proxy

Repository files navigation

media-proxy

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.

Deploy to Cloudflare Workers

Features

  • 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.

Configuration Options

  • WHITELIST: Array of whitelisted domains that are allowed to be proxied.
  • CACHE_TTL: Time-to-live (TTL) for cached images (in seconds).

License

media-proxy is licensed under the MIT License - see the LICENSE file for details.

Support and Contributions

For bug reports, feature requests, or contributions, please open an issue or submit a pull request on the GitHub repository.

About

⛅ Optimize image handling with Cloudflare Workers — a simple and efficient solution for proxying and caching by offloading image requests from your origin server.

Topics

Resources

License

Stars

Watchers

Forks