v0.28.0
This commit is contained in:
1 parent
c24bc4279b
commit
3b3f0db377
84 files changed
+2686
-392
No files matched your search
+11
-1
@@ -42,7 +42,7 @@ pub struct App {
|
||||
pub transform_metrics: Arc<crate::transform::Metrics>,
|
||||
pub traffic: Arc<crate::traffic::Analytics>,
|
||||
pub cache: Arc<crate::cache::Cache>,
|
||||
pub geoip: Arc<crate::geoip::Database>,
|
||||
pub geoip: ArcSwap<crate::geoip::Database>,
|
||||
pub rate_limiter: Arc<crate::rate_limit::Limiter>,
|
||||
pub acme: Arc<crate::acme::Manager>,
|
||||
pub diagnostics: Arc<crate::diagnostics::Diagnostics>,
|
||||
@@ -90,6 +90,16 @@ fn cache_revision(config: &config::Config) -> u64 {
|
||||
let mut cache = config.cache.clone();
|
||||
cache.memory_preset = None;
|
||||
cache.cold_preset = None;
|
||||
// Request bypass switches and response-only diagnostic headers do not alter
|
||||
// already cached representations. Keep cache objects across these policy
|
||||
// edits; the new behavior applies immediately on the next request.
|
||||
cache.bypass_query = false;
|
||||
cache.bypass_prefixes.clear();
|
||||
cache.expose_status = false;
|
||||
cache.expose_hits = false;
|
||||
cache.expose_cache_status = false;
|
||||
cache.expose_resident_age = false;
|
||||
cache.via_header = None;
|
||||
// Resource-only transform controls decide how much optimization work may
|
||||
// happen concurrently, but do not change the transformed representation.
|
||||
// Keep those out of the cache identity while including representation and
|
||||
|
||||
Reference in new issue
Block a user