v0.41.3_hotfix1
This commit is contained in:
1 parent
dd9ecc48f1
commit
0d0100acbc
35 files changed
+1007
-417
No files matched your search
@@ -85,13 +85,8 @@ if response.status() == StatusCode::NOT_MODIFIED && revalidation_sent {
|
||||
.extensions_mut()
|
||||
.insert(OriginBackend(active_backend.id.clone()));
|
||||
if let Some(exchange) = &exchange {
|
||||
exchange.cache_status.store(1, Ordering::Relaxed);
|
||||
*exchange
|
||||
.cache_reason
|
||||
.lock()
|
||||
.unwrap_or_else(|e| e.into_inner()) = "cache_revalidated";
|
||||
exchange.set_cache_outcome(scope, &host, 1, "cache_revalidated");
|
||||
}
|
||||
state.cache.record(scope, &host, "HIT", "cache_revalidated");
|
||||
return intercept_route_origin_error(revalidated, route, &snapshot);
|
||||
}
|
||||
}
|
||||
@@ -133,19 +128,8 @@ let reason = effective_reason
|
||||
"configuration_changed"
|
||||
}
|
||||
});
|
||||
if outcome == "MISS" && !miss_recorded {
|
||||
state.cache.record(scope, &host, "MISS", reason);
|
||||
if let Some(exchange) = &exchange {
|
||||
exchange.cache_status.store(2, Ordering::Relaxed);
|
||||
}
|
||||
} else if outcome == "MISS" && reason != "cache_miss" {
|
||||
state.cache.record_reason(scope, &host, reason);
|
||||
}
|
||||
if let Some(exchange) = &exchange {
|
||||
*exchange
|
||||
.cache_reason
|
||||
.lock()
|
||||
.unwrap_or_else(|e| e.into_inner()) = reason;
|
||||
exchange.set_cache_outcome(scope, &host, if outcome == "MISS" { 2 } else { 3 }, reason);
|
||||
}
|
||||
if fill_leader.is_some() && (origin_plan.is_none() || transformed_plan.is_none()) {
|
||||
if let Some(ticket) = cache_ticket.as_ref() {
|
||||
@@ -174,8 +158,7 @@ if let (Some(ticket), Some(plan), Some(transformed)) =
|
||||
cache_settings,
|
||||
fill_leader.take(),
|
||||
);
|
||||
// Avoid refreshing a cookie/credential-keyed entry without its original
|
||||
// VCL variation context: proactive refresh must never collapse users.
|
||||
|
||||
if cache_settings.proactive_refresh_enabled && proactive_remaining_ttl > 0
|
||||
&& !force_vary_cookie && !force_vary_authorization
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user