RE: https://infosec.exchange/@ifin/117630530054379148
I am firmly of the opinion that for almost all websites using public CDNs, they are basically of no benefit and are used only due to cargo-culting from the olden days when browser cache was not compartmentalized between origins and HTTP/2 did not exist.
For years I've been saying CDNs are a net liability for most websites; one of the reasons is that they are a juicy target. Anyone with sufficient access gets to deploy any JS to any site that pulls JS from them.
Lo and behold…
Outside of some very specific cases, you do not need a CDN for your website.
If you think a CDN will add resilience to your site, think again – you are adding one additional hard dependency. If that CDN is down, your website is down. And they do go down.
More CDNs, more hard dependencies, more risk.
If your website is slow and you think you need a CDN, focus on removing bloat instead. CDN will not help much a user on a slow connection, pulling a 30MiB website to get one piece of information.