This commit is contained in:
Mateusz Gruszczyński committed 2026-11-25 15:47:34 +01:00
1 parent 6df256cdbb
commit 0d6249e383
159 files changed
+16737 -1971

No files matched your search

+19
View File
@@ -119,6 +119,25 @@ With the policy enabled, the middle request stays `HIT` if the entry is fresh. C
In **Vhosts → Cache**, overrides for static extensions, bypass path prefixes and unsafe force targets each place the enable/override checkbox immediately above the associated multiline list. The fields are disabled while their individual override is off; their saved values and cache policy are unchanged. Never enable unsafe forced caching for personalized responses.
In corrected 0.42.0, forced-cache keys always partition by both `Cookie` and
`Authorization` **before lookup**. Missing, empty and nonempty fields remain
distinct, including when one credential appears only after another variant was
cached. Explicit VCL/HTTP-policy lookup partitions Cookie in the same way;
Authorization still bypasses unless the separate force option admits it.
The forwarded values after the existing credential filter and supported request
edits are used. An entirely empty input Cookie field is still removed by the
admin-cookie filter; a valid empty cookie such as `session=` remains distinct
from no Cookie. Responses add the corresponding `Vary` dimensions even when the
request lacks those fields. Explicit later delivery-header overrides retain
their documented behavior and must preserve dimensions needed downstream.
These keys use a new internal namespace, so older forced/VCL-lookup HOT/COLD
entries cannot satisfy the corrected lookups; they may remain on disk until
normal eviction or cleanup. Other cache keys and the COLD file format remain
compatible. Credential-partitioned fills do not schedule proactive background
refresh; ordinary foreground validation retains the matching request context.
Response privacy exclusions and explicit VCL `return(pass)` still apply.
## Cache decision precedence, explicit `pass` and public static assets
**Applies to RustProxy 0.39.2.** Every reason that keeps a request away from the HOT/COLD cache is classified by one central decision (`src/cache/policy/decision.rs`), used by live traffic and by **Test a request**. Reasons are evaluated strongest first: