Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-block-and-bid-production

This commit is contained in:
Eitan Seri- Levi
2026-02-10 12:12:24 -08:00
68 changed files with 3276 additions and 1321 deletions

View File

@@ -3254,7 +3254,19 @@ pub fn serve<T: BeaconChainTypes>(
let s = futures::stream::select_all(receivers);
Ok(warp::sse::reply(warp::sse::keep_alive().stream(s)))
let response = warp::sse::reply(warp::sse::keep_alive().stream(s));
// Set headers to bypass nginx caching and buffering, which breaks realtime
// delivery.
let response = warp::reply::with_header(response, "X-Accel-Buffering", "no");
let response = warp::reply::with_header(response, "X-Accel-Expires", "0");
let response = warp::reply::with_header(
response,
"Cache-Control",
"no-cache, no-store, must-revalidate",
);
Ok(response)
})
},
);