Reduced origin load
- Impact
- Fewer requests reach your servers
A CDN is a group of servers in many locations that store copies of your content and serve it from the nearest one. What it caches, its risks, and how to measure it.
A CDN (content delivery network) is a group of servers distributed across multiple geographic locations that store duplicate copies of data. Requests are fulfilled by whichever servers are closest to the user, which can lower latency and lowers the request load on your own servers. CDNs are widely used for static assets such as stylesheets and JavaScript files.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
MDN says CDNs are used widely for delivering stylesheets and JavaScript files (static assets) of libraries like Bootstrap and jQuery, and that entire websites can be served from CDNs, particularly static websites made only of static HTML, CSS and JavaScript files.
1. A visitor in Japan requests https://example.com/image.jpg
2. DNS or routing sends the request to a nearby CDN server
3. Cache hit: the CDN serves its stored copy
4. Cache miss: the CDN fetches the file from your origin and stores it
5. Later visitors nearby get the stored copyMDN also says modern browsers do not share cache between different origins for the same resource, for privacy reasons, so the user has to download the same asset (for example jQuery) multiple times on different websites anyway. Test your own setup rather than assuming a CDN helps.
<script
src="https://cdn.example.com/lib.js"
integrity="sha384-REPLACE_WITH_REAL_HASH"
crossorigin="anonymous"></script>
<!-- Generate the hash from the exact file: -->
<!-- cat lib.js | openssl dgst -sha384 -binary | openssl base64 -A -->Before the change, record LCP and time to first byte (TTFB) with PageSpeed Insights or WebPageTest.
Route images, stylesheets, scripts and fonts through the CDN and set Cache-Control headers that match how often each file changes.
Run curl -sI https://example.com/image.jpg twice and compare the response headers, such as cache-control and age. Hit or miss headers differ by provider, so check your provider's docs.
Run WebPageTest from locations far from your origin, and compare against the baseline.
Check the Core Web Vitals report in Search Console over the following weeks. Google's targets are LCP within 2.5 seconds, INP under 200 milliseconds and CLS under 0.1.
Check your provider's pricing against the improvement you measured.
3 questions people ask next, answered from the sources on this page.
No. A CDN helps most when visitors are far from your origin or you serve many static files. If your audience sits near your server, measure first: MDN notes a CDN can add DNS lookups and overhead that offset the gain.
MDN's examples are stylesheets, JavaScript files and static websites made only of static HTML, CSS and JavaScript. Check your provider's docs before caching pages that differ per user.
Google's Core Web Vitals page doesn't mention CDNs. It says good Core Web Vitals, along with other page experience aspects, "aligns with what our core ranking systems seek to reward". If your slow loading came from distance to the origin, a CDN may help those metrics.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.