wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

Beacon script is added to cache RSS feed

Open camilamadronero opened this issue 10 months ago • 3 comments

Describe the bug When using the WP Rocket | Cache RSS feed plugin, the beacon inline script is added to the page, making the markup invalid

To Reproduce Steps to reproduce the behavior:

  1. Install the WP Rocket | Cache RSS feed plugin
  2. Visit the feed page
  3. See the beacon script
  4. Run a feed markup validation test

Test page with the error: https://camila.com.co/feed/ Validation result: https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fcamila.com.co%2Ffeed%2F

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screenshot: https://jmp.sh/RexyamqD

Additional context Ticket: https://secure.helpscout.net/conversation/2862269293/543164?viewId=273761 Slack: https://group-onecom.slack.com/archives/C08EFUGUH5G/p1740696116560039

camilamadronero avatar Feb 28 '25 16:02 camilamadronero

Another case here: https://secure.helpscout.net/conversation/2865297829/543715 Duplicate here: https://github.com/wp-media/wp-rocket-helpers/issues/121

suzoutlet avatar Mar 04 '25 09:03 suzoutlet

Another case: https://secure.helpscout.net/conversation/2918616497/556368?viewId=2675957

camilamadronero avatar Apr 24 '25 20:04 camilamadronero

I have updated the helper, and it prevents the issue. https://github.com/wp-media/wp-rocket-helpers/blob/master/cache/wp-rocket-cache-feed/wp-rocket-cache-feed/wp-rocket-cache-feed.php#L85-L95

If the solution is accepted, we could close this issue

alfonso100 avatar Apr 24 '25 20:04 alfonso100