mirror of
https://github.com/therealaleph/MasterHttpRelayVPN-RUST.git
synced 2026-05-18 06:24:35 +03:00
add response cache with TTL + Cache-Control parsing
- New cache.rs: FIFO-eviction cache with max_bytes cap - Cacheable: GET/HEAD only, no-store/no-cache/private/Set-Cookie reject - TTL from Cache-Control: max-age=, or heuristics by extension (css/js/fonts/images -> 1h) - Hook in DomainFronter::relay: check cache before network, store after 2xx - 10 new unit tests (23 total)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#![allow(dead_code)]
|
||||
|
||||
mod cache;
|
||||
mod cert_installer;
|
||||
mod config;
|
||||
mod domain_fronter;
|
||||
|
||||
Reference in New Issue
Block a user