{"version":"1.0","type":"rich","title":"Gist ed0b05dfaea40fd9ccfebd9980d7bb7b","description":"This example demonstrates a Drupal middleware that caps the number of cache tags in HTTP responses for specific paths, limiting them to 625 tags. It shows how to filter request paths and truncate the `edge-cache-tag` and `x-acquia-purge-tags` headers by splitting them into arrays, slicing excess tags, and re-implementing them. The code uses Symfony’s `HttpKernelInterface` and `Request` objects to intercept responses, relying on PHP’s `explode`, `array_slice`, and `implode` functions. No visualization libraries are involved; the rendering approach is purely server-side header manipulation.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-ed0b05dfaea40fd9ccfebd9980d7bb7b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}