You are here

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
  1. if (req.http.X-Blackfire-Query && req.http.Fastly-Client-IP ~ {{ acl }}) {
  2. if (req.esi_level > 0) {
  3. # ESI request should not be included in the profile.
  4. # Instead you should profile them separately, each one
  5. # in their dedicated profile.
  6. # Removing the Blackfire header avoids to trigger the profiling.
  7. # Not returning let it go through your usual workflow as a regular
  8. # ESI request without distinction.
  9. unset req.http.X-Blackfire-Query;
  10. } else {
  11. set req.http.X-Pass = "1";
  12. }
  13. }