feat(cache): add pingora-cache integration with per-route config
Add in-memory HTTP response cache using pingora-cache MemCache backend. Cache runs after the detection pipeline so cache hits bypass upstream request modifications and body rewriting. Respects Cache-Control (no-store, private, s-maxage, max-age), skips caching for routes with body rewrites or auth subrequest headers, and supports configurable default TTL, stale-while-revalidate, and max file size per route. Signed-off-by: Sienna Meridian Satterwhite <sienna@sunbeam.pt>
This commit is contained in:
@@ -12,7 +12,8 @@ path = "src/lib.rs"
|
||||
pingora = { version = "0.8", features = ["rustls"] }
|
||||
pingora-proxy = { version = "0.8", features = ["rustls"] }
|
||||
pingora-core = { version = "0.8", features = ["rustls"] }
|
||||
pingora-http = "0.8"
|
||||
pingora-http = "0.8"
|
||||
pingora-cache = { version = "0.8", features = ["rustls"] }
|
||||
|
||||
# HTTP header constants
|
||||
http = "1"
|
||||
|
||||
Reference in New Issue
Block a user