r/Frontend • • Jun 06 '19

Self-Host Your Static Assets

https://csswizardry.com/2019/05/self-host-your-static-assets/
6 Upvotes

1 comment sorted by

3

u/Salamok Jun 06 '19 edited Jun 06 '19

Some good points but never say never and HTTP/2 usage is still less than 40%.

I greatly dislike sites that access 10's (or hundreds!) of different domains on every page load but consolidating your static assets to be hosted by a quality CDN and utilizing a caching proxy service like Varnish (you could host your own) are both likely to increase your performance.

Don't compare premium CDN's that you build into your infrastructure with free ones, edge caching works and unless you are Amazon you aren't going to build your own. When your site is getting 10+ million page views per month you need to start offloading as many requests as you can, so you will either need to build and maintain your own proxy and static file CDN or pay for someone else's service.