How CDNs Make Websites Faster

How CDNs Make Websites Faster

How serving files from nearby servers makes a site fast everywhere

What you'll learn

  • Why distance makes pages slow
  • Edge servers, cache hits and cache misses
  • Controlling caching with the Cache-Control header
  • How a CDN takes load off your server

In this video, we'll look at why the same website can load fast in New York but slow in Sydney, and how Content Delivery Networks (CDNs) fix it by serving content from servers closer to users. We'll cover edge servers, cache hits, cache misses, Cache-Control headers, and how CDNs reduce the load on your own server.

We'll also look at what CDNs are best for, like images, videos, CSS, and JavaScript, and how they can cache API responses and block attacks.

More videos

32 short explainers so far, with more on the way

View all videos

Join the Community

roadmap.sh is among the top 10 most starred projects on GitHub and is visited by hundreds of thousands of developers every month.

Top 10 out of 28M!

371K

GitHub Stars

Star us on GitHub
Help us reach #1

+90kevery month

+3.2M

Registered Users

Register yourself
Commit to your growth

+2kevery month

52K

Discord Members

Join on Discord
Join the community

RoadmapsGuidesFAQsYouTube

roadmap.shby@nilbuild

Community created roadmaps, best practices, projects, articles, resources and journeys to help you choose your path and grow in your career.

© roadmap.sh·Terms·Privacy·

ThewNewStack

The top DevOps resource for Kubernetes, cloud-native computing, and large-scale development and deployment.