https://github.com/szalovszky/media-proxy
⛅ Optimize image handling with Cloudflare Workers — a simple and efficient solution for proxying and caching by offloading image requests from your origin server.
https://github.com/szalovszky/media-proxy
cache caching cloudflare cloudflare-cli cloudflare-worker cloudflare-workers image-proxy media-proxy
Last synced: about 1 month ago
JSON representation
⛅ Optimize image handling with Cloudflare Workers — a simple and efficient solution for proxying and caching by offloading image requests from your origin server.
- Host: GitHub
- URL: https://github.com/szalovszky/media-proxy
- Owner: szalovszky
- License: mit
- Created: 2023-12-18T00:04:06.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-12T16:50:37.000Z (3 months ago)
- Last Synced: 2025-01-12T17:36:34.311Z (3 months ago)
- Topics: cache, caching, cloudflare, cloudflare-cli, cloudflare-worker, cloudflare-workers, image-proxy, media-proxy
- Language: TypeScript
- Homepage:
- Size: 163 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# media-proxy
This Cloudflare Worker service provides a simple and efficient solution for proxying and caching images. By leveraging [Cloudflare Workers](https://workers.cloudflare.com/), you can offload image requests from your origin server, reduce latency, and enhance overall website performance.
[](https://deploy.workers.cloudflare.com/?url=https://github.com/szalovszky/media-proxy)
## 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](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.