CDNs are lovely, however there are certain drawbacks of using a CDN for your website may far outweigh the benefits.
This library is an attemp to take the control back from CDNs, while keeping all the good parts.
-
Security. Using CDN someone else is hosting these files. You must trust them 100%. No??? :)
-
Speed. Your Golang app will serve these faster than any CDN.
-
Reliability. CDNs do fail. When they do your website is useless.
-
Embeded CSS/JS. Even though you can either serve these locally, if you embed them in the webpage you will reduce the requests and speed the page.
-
Automated testing.
-
Better SEO
-
Costs. If you pay for CDN the costs can be substantial
go get github.com/gouniverse/uncdn
uncdn.JQuery360()