LuaRocks.org had a security incident in September 2026. Read the incident report.

An ESI capable HTTP cache module for OpenResty

$ luarocks install ledge

Ledge aims to be an RFC compliant HTTP reverse proxy cache wherever possible, providing a fast and robust alternative to Squid / Varnish etc.

Moreover, it is particularly suited so applications where the origin is expensive or distant, making it desirable to serve from cache as optimistically as possible. For example, using ESI to separate page fragments where their TTL differs, serving stale content whilst revalidating in the background, collapsing concurrent similar upstream requests, dynamically modifying the cache key specification, and automatically revalidating content with a PURGE API.

Versions

1.28-19 years ago3,117 downloads
1.27.3-19 years ago88 downloads
1.27.1-19 years ago194 downloads
1.27-19 years ago56 downloads
1.26.1-110 years ago53 downloads
1.26-010 years ago(revision: 7)67 downloads

Dependencies

lua ~> 5.1

Manifests