Litespeed does not exclude AdSense adsbygoogle.js




Wordpress LScache Plugin: Litespeed does not exclude AdSense adsbygoogle.js

Last Updated on: Wed, 15 Apr 2026 00:00:02
AdSense will work on wordpress+litespeed if it is correctly linked with Google Sitekit plugin (after april 2021). that is the easiest route for anyone else reading this. however, i have a need to manually & programmatically insert the Adsense line of code by another means i insert this line: //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js but it is always cached in the cdn (I have keycdns cdn mapped to cdn.the5krunner.com). when it is inserted into the cdn the URL is prefixed with the CDN path and, apparently, this causes adsense to stop working I have tried several litespeed exclusions for example tuning>JS Excludes where i have tied to exclude various combinations none of which works after a full cache refresh, i tried: //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js adsbygoogle.js //pagead2.googlesyndication.com/pagead/js/ This topic was modified 1 year, 6 months ago by the5krunner. The page I need help with: https://the5krunner.com/ i think i solved it in this litespeed setting 6 localisation>Localization Files remove all references to google ads. i yes, i have the same problem with localization. when try to host local google analytics, it seem lscwp cant local google analytics!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference