I rerolled this patch for the current 2.x-dev version.
Just realized that this is a duplicate of https://www.drupal.org/project/cloudflare/issues/3129594 π Purger: Different types of invalidations not working together Needs work .
Adding patch
kleinmp β created an issue.
I just wanted to note that we ran into an issue with New Relic after adding the Content-Length header. It wouldn't inject the js-agent into the html because there was a Content-Length header (probably because it changes the length by doing so). So, we stopped getting PageView information until we removed the header.
https://docs.newrelic.com/docs/release-notes/agent-release-notes/php-rel...
One work around is to add the script tag manually in code. That way you get the correct Content-Length and you don't rely on it being injected automatically by the php agent.
https://docs.newrelic.com/docs/apm/agents/php-agent/features/browser-mon...
Attaching patch.
kleinmp β created an issue.
This patch is allowing a site I'm working on to run in both Drupal 9.5.x and 10.0.x with version 2.0 of this module. It probably does not work for Drupal 9.4 and less.
I updated the handle method to match how core is using it:
https://git.drupalcode.org/project/drupal/-/blob/10.0.11/core/modules/pa...
kleinmp β created an issue.
kleinmp β created an issue.
kleinmp β created an issue.
I re-roled the patch off of drupal 8 and hopefully fixed the simple test issue.
Here's the patch re-roled against the newest drupal 7 dev.