Skip to content

Commit 3d7e4fe

Browse files
committed
Added cdn security header section, updated conclusion.
1 parent ccb92de commit 3d7e4fe

1 file changed

Lines changed: 36 additions & 8 deletions

File tree

src/content/en/2025/cdn.md

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@ A _Content Delivery Network_ (CDN) is a geographically distributed network of se
3636

3737
CDNs serve as intermediary infrastructure between end users and origin servers, intercepting web requests and optimizing the complete delivery process. To understand how CDNs can enhance web performance, consider the traditional web interaction when a user types a hostname into a browser, and how different CDNs may improve each step:
3838

39-
**1. DNS Resolution**
39+
**DNS Resolution**
4040
- **Traditional**: Browser queries DNS for origin server IP, often with slow resolution times
4141
- **CDN Processed**: CDN DNS infrastructure may use various routing strategies (anycast or unicast) to direct users to optimal edge servers. Some CDNs support modern DNS records like HTTPS or SVCB (Service Binding) records that can advertise protocol capabilities directly in DNS responses, though adoption varies across providers
4242

43-
**2. Connection Establishment**
43+
**Connection Establishment**
4444
- **Traditional**: Browser establishes new TCP connection to distant origin server with full handshake overhead
4545
- **CDN Processed**: Connection to nearby edge server over TCP (for HTTP/1.1 and HTTP/2) or UDP with QUIC (for HTTP/3). CDNs may support HTTP/3's 0-RTT connection resumption for returning visitors, though not all CDNs have implemented these newer connection optimization features
4646

47-
**3. Protocol Negotiation**
47+
**Protocol Negotiation**
4848
- **Traditional**: Limited to origin server's protocol capabilities, often older HTTP versions
4949
- **CDN Processed**: Many CDNs can advertise modern protocol availability through Alt-Svc (Alternative Service) headers that inform browsers about alternative protocols. CDNs typically provide protocol translation benefits, accepting newer protocols from browsers while maintaining optimized connections to origins, regardless of origin server capabilities
5050

51-
**4. Request Processing & Optimization**
51+
**Request Processing & Optimization**
5252
- **Traditional**: Basic request forwarding with minimal processing
5353
- **CDN Processed**: Depending on the CDN, may include header normalization, intelligent routing decisions, addition of performance headers like Server-Timing which provides server-side performance metrics, security headers, and request optimization based on content type and user geographic location
5454

55-
**5. Response Processing**
55+
**Response Processing**
5656
- **Traditional**: Direct response from origin server, limited by origin's HTTP server capabilities
5757
- **CDN Processed**: CDNs may implement advanced caching strategies, cache validation, Content-Encoding optimization (such as Brotli or Gzip compression), conditional request support (like 304 Not Modified responses that save bandwidth), and response transformation, though specific features vary by provider
5858

59-
**6. Connection Management**
59+
**Connection Management**
6060
- **Traditional**: Single connection per request or basic keep-alive to origin
6161
- **CDN Processed**: Many CDNs implement dual-sided connection optimization, maintaining persistent connections to clients while using intelligent connection pooling to origin servers, reducing overhead on both ends
6262

@@ -255,7 +255,35 @@ Defined in the W3C Server-Timing specification, the Server-Timing header allows
255255
)
256256
}}
257257

258-
Adoption of the Server-Timing header varies across CDNs. Above you can see Pressable and Nexcess CDNs had 100% adoption across their requests due to default configurations. However, CDNs like Amazon CloudFront requires non-default configuration likely leading to less adoption.
258+
Adoption of the Server-Timing header varies across CDNs. Above you can see Pressable and Nexcess CDNs had 100% adoption across their requests due to default configurations. CDNs like Akamai, Amazon CloudFront, and Fastly requires non-default configuration likely leading to less adoption. However, enterprise concerns around security, privacy, and performance may drive this opt-in approach.
259+
260+
## CDN Security Headers
261+
262+
CDNs play a critical role in web security by implementing and enforcing security headers that protect users from common attacks. Security headers like HTTP Strict Transport Security (HSTS), X-Frame-Options (XFO), and Content Security Policy (CSP) help prevent everything from man-in-the-middle attacks to clickjacking and cross-site scripting. Because CDNs sit between users and origin servers, they can insert or modify these headers regardless of what the origin provides, making it easier for site operators to deploy security best practices.
263+
264+
{{ figure_markup(
265+
image="cdn-http-avg-sec-headers-mobile.png",
266+
caption="Distribution of HTTP security header count (mobile).",
267+
description="This bar chart shows the average number of security headers per request for major enterprise CDN providers.",
268+
chart_url="https://docs.google.com/spreadsheets/d/e/2PACX-1vS1h8gr-lNGf8NUYbAeY1_PJ75J5WJXTJDIpZ36oZkxXze64PaDkknKT2ALLUe0iU4VkQQhXpJAiQI8/pubchart?oid=366378643&format=interactive",
269+
sheets_gid="1319551791",
270+
sql_file="security_headers_by_cdn.sql"
271+
)
272+
}}
273+
274+
Shown above you can see the average number of security headers per request from major enterprise CDN providers. Both Cloudflare and Amazon CloudFront have a lower average number of security headers and this trend continues as we go more granular into specific headers as scene below.
275+
276+
{{ figure_markup(
277+
image="cdn-http-sec-headers-mobile.png",
278+
caption="Distribution of HTTP security headers (mobile).",
279+
description="This bar chart shows the average number of security headers per request for major enterprise CDN providers.",
280+
chart_url="https://docs.google.com/spreadsheets/d/e/2PACX-1vS1h8gr-lNGf8NUYbAeY1_PJ75J5WJXTJDIpZ36oZkxXze64PaDkknKT2ALLUe0iU4VkQQhXpJAiQI8/pubchart?oid=2063660063&format=interactive",
281+
sheets_gid="1319551791",
282+
sql_file="security_headers_by_cdn.sql"
283+
)
284+
}}
285+
286+
Fastly and Akamai have more sane defaults for security headers when basic features are enabled which drives higher rates of security headers. Amazon CloudFront and Cloudflare require more non-default configurations to inject and enforce security headers leading to a lower adoption.
259287

260288
## Compression
261289

@@ -417,7 +445,7 @@ We're interested to see how Early Hints affects performance as more sites start
417445

418446
In 2024, we saw CDNs leading the charge on adopting emerging technologies like HTTP/3, and that pattern has held steady into 2025. Looking at features like Brotli and ZStandard compression or TLS 1.3 encryption, CDNs make it easy for sites to implement these improvements through simple configuration changes instead of overhauling entire fleets of servers, load balancers, and networking equipment.
419447

420-
This year we took a deeper look at HTTP/3 and revisited Early Hints, which we first examined in 2024. For the first time we broke out CDN performance and will dive deeper in 2026. We initially planned to include IPv6 analysis, but the data wasn't reliable enough to draw meaningful conclusions. We hope to address IPv6 adoption in the 2026 chapter once we have more robust measurements.
448+
This year we took a deeper look at HTTP/3 and revisited Early Hints, which we first examined in 2024. For the first time we broke out CDN performance and security and will dive deeper in 2026, specifically on tradeoffs that exist between both topics. We initially planned to include IPv6 analysis, but the data wasn't reliable enough to draw meaningful conclusions. We hope to address IPv6 adoption in the 2026 chapter once we have more robust measurements.
421449

422450
The CDN landscape in 2025 demonstrates that these platforms have evolved far beyond simple content delivery to become comprehensive optimization and security platforms that are essential infrastructure for the modern web.
423451

0 commit comments

Comments
 (0)