v0.28.0
This commit is contained in:
1 parent
c24bc4279b
commit
3b3f0db377
84 files changed
+2686
-392
No files matched your search
@@ -53,6 +53,20 @@ mod cache_revision_tests {
|
||||
transform_body_limit.transform.max_body_bytes += 1024;
|
||||
assert_ne!(cache_revision(&transform_body_limit), identity);
|
||||
|
||||
let mut wire_only = base.clone();
|
||||
wire_only.cache.bypass_query = !wire_only.cache.bypass_query;
|
||||
wire_only.cache.bypass_prefixes.push("/private".into());
|
||||
wire_only.cache.expose_status = !wire_only.cache.expose_status;
|
||||
wire_only.cache.expose_hits = !wire_only.cache.expose_hits;
|
||||
wire_only.cache.expose_cache_status = !wire_only.cache.expose_cache_status;
|
||||
wire_only.cache.expose_resident_age = !wire_only.cache.expose_resident_age;
|
||||
wire_only.cache.via_header = Some("RustProxy edge".into());
|
||||
assert_eq!(cache_revision(&wire_only), identity);
|
||||
assert!(matches!(
|
||||
cache_invalidation(&base, &wire_only),
|
||||
CacheInvalidation::None
|
||||
));
|
||||
|
||||
let mut cache = base.clone();
|
||||
cache.cache.max_entries += 1;
|
||||
let cache_identity = cache_revision(&cache);
|
||||
|
||||
Reference in new issue
Block a user