Skip to content

Commit c0ac01a

Browse files
Create and apply connection-reuse partial
1 parent e68caf6 commit c0ac01a

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

src/content/docs/aegis/about/reuse-and-coalescing.mdx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,11 @@ sidebar:
66
label: Reuse and coalescing
77
---
88

9-
import { Details } from "~/components";
9+
import { Render } from "~/components";
1010

1111
Aside from [concurrent connections](/aegis/about/ips-allocation/#connections-to-your-origin)[^1], connection reuse and connection coalescing are also important concepts. They both have impact on latency and are considered when allocating your Aegis IPv4 addresses.
1212

13-
Implemented by HTTP/1.1, connection reuse describes multiple requests passing through one same connection (between one source IP:port and one destination IP:port). It is commonly the case even for simple websites nowadays.
14-
15-
<Details header="Example">
16-
When a connection is initiated for `shop.example.com`, several embedded subresources may be requested - CSS, image files, advertisement, etc. This can mean hundreds of requests just for the website to load. Instead of having a one to one ratio of request per connection, a single connection is used for multiple requests.
17-
</Details>
18-
19-
With HTTP/2, requests can use the same connection even if they are for different domains.
20-
21-
<Details header="Example">
22-
A connection initiated for `shop.example.com` can be used for requests for `blog.example.com` as well - as long as the requests have the same destination IP:port and the server TLS certificate is authoritative for both hostnames.
23-
</Details>
13+
<Render file="connection-reuse" product="aegis" />
2414

2515
Refer to the [Cloudflare blog post](https://blog.cloudflare.com/aegis-deep-dive/) for further details.
2616

src/content/docs/smart-shield/concepts/connection-reuse.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ pcx_content_type: concept
33
title: Connection reuse
44
sidebar:
55
order: 4
6-
---
6+
---
7+
8+
import { Render } from "~/components";
9+
10+
<Render file="connection-reuse" product="aegis" />
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
{}
3+
---
4+
5+
import { Details } from "~/components";
6+
7+
Implemented by HTTP/1.1, connection reuse describes multiple requests passing through one same connection (between one source IP:port and one destination IP:port). It is commonly the case even for simple websites nowadays.
8+
9+
For example, when a connection is initiated for `shop.example.com`, several embedded subresources may be requested - CSS, image files, advertisement, etc. This can mean hundreds of requests just for the website to load. Instead of having a one to one ratio of request per connection, a single connection is used for multiple requests.
10+
11+
With HTTP/2, requests can use the same connection even if they are for different domains.
12+
13+
For example, a connection initiated for `shop.example.com` can be used for requests for `blog.example.com` as well - as long as the requests have the same destination IP:port and the server TLS certificate is authoritative for both hostnames.

0 commit comments

Comments
 (0)