blackfire_integration.html.twig in Fastly 8.3
if (req.http.X-Blackfire-Query && req.http.Fastly-Client-IP ~ {{ acl }}) {
if (req.esi_level > 0) {
# ESI request should not be included in the profile.
# Instead you should profile them separately, each one
# in their dedicated profile.
# Removing the Blackfire header avoids to trigger the profiling.
# Not returning let it go through your usual workflow as a regular
# ESI request without distinction.
unset req.http.X-Blackfire-Query;
} else {
set req.http.X-Pass = "1";
}
}
File
fastly_edge_modules/templates/blackfire_integration.html.twig
View source
- if (req.http.X-Blackfire-Query && req.http.Fastly-Client-IP ~ {{ acl }}) {
- if (req.esi_level > 0) {
- # ESI request should not be included in the profile.
- # Instead you should profile them separately, each one
- # in their dedicated profile.
- # Removing the Blackfire header avoids to trigger the profiling.
- # Not returning let it go through your usual workflow as a regular
- # ESI request without distinction.
- unset req.http.X-Blackfire-Query;
- } else {
- set req.http.X-Pass = "1";
- }
- }