Beacon script is added to cache RSS feed
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:
- Install the WP Rocket | Cache RSS feed plugin
- Visit the feed page
- See the beacon script
- 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
Another case here: https://secure.helpscout.net/conversation/2865297829/543715 Duplicate here: https://github.com/wp-media/wp-rocket-helpers/issues/121
Another case: https://secure.helpscout.net/conversation/2918616497/556368?viewId=2675957
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