Content Delivery Network (CDN) Reference Architecture Content Delivery Network (CDN) Reference Architecture Content Delivery Network (CDN) Reference Architecture
/reference-architecture/architectures/cdn
Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែមLộ trình đang học Current learning path Current learning path
Application Services Application Services Application Services
Làm đúng từng bước trên dashboard: zone chạy, HTTPS Full (strict), WAF log rồi block, cache không phá session. Click through the dashboard: a live zone, Full (strict) HTTPS, WAF log-then-block, cache that does not break sessions. ចុចតាម dashboard៖ zone កំពុងដំណើរការ, HTTPS Full (strict), WAF log-then-block, cache ដែលមិនបំបែក session។
Phần 4: Content delivery & tăng tốc website Part 4: Content delivery & website speed ផ្នែក 4: Content delivery និងល្បឿន website · Bài 1/4 Lesson 1/4 មេរៀន 1/4
| Mục tiêuGoalគោលដៅ | Hiểu HIT tại PoP vs MISS về origin — cache static, không cache HTML có session. Understand PoP HIT vs MISS to origin — cache static assets, do not cache HTML with sessions. យល់ HIT នៅ PoP vs MISS ទៅ origin — cache static assets, កុំ cache HTML ដែលមាន session។ |
|---|---|
| Ai làmWho does thisអ្នកធ្វើ | DevOps / frontend DevOps / frontend DevOps / frontend |
| Thời gianTimeរយៈពេល | ~20 phút ~20 min ~20 នាទី |
| Kết thúc bạn sẽ cóYou'll finish withពេលបញ្ចប់អ្នកនឹងមាន | Biết đọc cf-cache-status; một asset static HIT; một trang login/cart không HIT giữa user. You can read cf-cache-status; one static asset HITs; a login/cart page does not HIT across users. អ្នកអាចអាន cf-cache-status; static asset មួយ HIT; ទំព័រ login/cart មិន HIT ឆ្លងកាត់អ្នកប្រើ។ |
| Trước khi bắt đầuBefore you beginមុនពេលចាប់ផ្តើម | Hostname Proxied. Có URL static (/assets/*.js) và URL động. Hostname is Proxied. You have a static URL (/assets/*.js) and a dynamic URL. Hostname គឺ Proxied។ អ្នកមាន URL static (/assets/*.js) និង URL dynamic។ |
| Gói / planPlanPlan | CDN cache có trên mọi plan. Tiered Cache / Argo Smart Routing là add-on hoặc plan cao. CDN cache is on every plan. Tiered Cache / Argo Smart Routing are add-ons or higher plans. CDN cache មានលើគ្រប់ plan។ Tiered Cache / Argo Smart Routing គឺ add-on ឬ plan ខ្ពស់ជាង។ |
1 Gọi asset static hai lần, đọc header. Fetch a static asset twice and read headers. Fetch static asset ដូចគ្នាពីរដងហើយអាន header។
Nhập: Enter: បញ្ចូល៖ curl -sI https://www.example.com/assets/app.js | grep -i cf-cache curl -sI https://www.example.com/assets/app.js | grep -i cf-cache curl -sI https://www.example.com/assets/app.js | grep -i cf-cache
Checkpoint: Checkpoint: Checkpoint៖ Lần hai thường HIT hoặc EXPIRED→HIT. MISS mãi = Cache-Control origin quá ngắn hoặc BYPASS rule. Second fetch is usually HIT or EXPIRED→HIT. Endless MISS = origin Cache-Control too short or a BYPASS rule. Fetch ទីពីរជាធម្មតា HIT ឬ EXPIRED→HIT។ MISS មិនឈប់ = origin Cache-Control ខ្លីពេក ឬ BYPASS rule។
2 Gọi trang HTML có cookie session. Fetch an HTML page that sets session cookies. Fetch ទំព័រ HTML ដែល set session cookie។
Checkpoint: Checkpoint: Checkpoint៖ cf-cache-status DYNAMIC hoặc BYPASS — không phục vụ HTML user A cho user B. cf-cache-status DYNAMIC or BYPASS — do not serve user A HTML to user B. cf-cache-status DYNAMIC ឬ BYPASS — កុំ serve HTML របស់ user A ទៅ user B។
3 Caching → Configuration: hiểu Standard vs Aggressive; đừng bật Cache Everything trên HTML có session. Caching → Configuration: understand Standard vs Aggressive; do not Cache Everything on session HTML. Caching → Configuration: យល់ Standard vs Aggressive; កុំ Cache Everything លើ session HTML។
Nguồn sự thật: tài liệu chính thức Cloudflare Developers (diễn giải, không sao chép nguyên văn). Nhãn menu dashboard có thể đổi — chọn mục tương đương gần nhất. Source of truth: official Cloudflare Developer docs (paraphrased, not copied verbatim). Dashboard labels shift — follow the nearest equivalent. ប្រភពពិត: official Cloudflare Developer docs (paraphrased)។ Dashboard labels ផ្លាស់ — តាម equivalent ជិតបំផុត។
Bật Tiered Cache (có trên mọi gói) — cache gần user hơn, giảm request về origin và tăng cache hit ratio. Enable Tiered Cache (included on every plan) — content is cached closer to users, reducing origin requests and improving cache hit ratios. Enable Tiered Cache (included on every plan) — content is cached closer to users, reducing origin requests and improving cache hit ratios.
Nguồn: Source: Source: Content Delivery Network (CDN) Reference Architecture Content Delivery Network (CDN) Reference Architecture Content Delivery Network (CDN) Reference Architecture ↗
Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này. Official examples from Cloudflare Resources — matched to this lesson within this path. Official examples from Cloudflare Resources — matched to this lesson within this path.
/reference-architecture/architectures/cdn
Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែមPattern L7: data flow, cache tiers, deployment models — giảm latency và cải thiện Core Web Vitals.
A prescriptive pattern for building a Cloudflare-based L7 performance architecture that reduces latency, raises cache efficiency, and improves Core Web Vitals.
A prescriptive pattern for building a Cloudflare-based L7 performance architecture that reduces latency, raises cache efficiency, and improves Core Web Vitals.
Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែមPage Rules cho phép bạn bỏ qua cài đặt khu vực cho các mẫu URL cụ thể. Chuyển hướng các URL cũ với một chuyển hướng 301 vĩnh viễn
Page Rules let you override zone settings for specific URL patterns. Redirects old URLs with a 301 permanent redirect.
Page Rules អនុញ្ញាតឱ្យអ្នកបដិសេធការកំណត់តំបន់សម្រាប់លំនាំ URL ជាក់លាក់។ បញ្ជូនបន្ត URLs ចាស់ជាមួយនឹង 301 ប្តូរទិសអចិន្ត្រៃយ៍។
Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែមTìm hiểu cách sử dụng khóa SSL với AWS CloudHSM.
Learn how to use Keyless SSL with AWS CloudHSM.
ស្វែងយល់ពីរបៀបប្រើ Keyless SSL ជាមួយ AWS CloudHSM ។
Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែមXem thêm ví dụ trong lộ trình → More examples in this path → More examples in this path →
Thiết kế kiến trúc hiệu năng web phân tán Designing a distributed web performance architecture Designing a distributed web performance architecture
Pattern L7: data flow, cache tiers, deployment models — giảm latency và cải thiện Core Web Vitals. A prescriptive pattern for building a Cloudflare-based L7 performance architecture that reduces latency, raises cache efficiency, and improves Core Web Vitals. A prescriptive pattern for building a Cloudflare-based L7 performance architecture that reduces latency, raises cache efficiency, and improves Core Web Vitals.
Thuật ngữ: Concepts: Concepts: CDN · Cache · Core Web Vitals · Smart Shield · Argo
Sơ đồ chính thức ↗ Official diagram ↗ Official diagram ↗ · Phân phối nội dung Content Delivery Content Delivery
Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song. Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel. Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.
Follow-along Worker-first: C3 + Wrangler, rồi storage, Pages (compat), operate và AI Follow-along Worker-first: C3 + Wrangler, then storage, Pages (compat), operate, and AI Follow-along Worker-first: C3 + Wrangler បន្ទាប់មក storage, Pages (compat), operate និង AI
Vào lộ trình này → Enter this path → Enter this path →Triển khai Zero Trust theo từng mô-đun: identity, thiết bị, ZTNA, Gateway, DLP, AI và Cloudflare WAN Deploy Zero Trust module by module: identity, devices, ZTNA, Gateway, DLP, AI, and Cloudflare WAN Deploy Zero Trust module by module: identity, devices, ZTNA, Gateway, DLP, AI, and Cloudflare WAN
Vào lộ trình này → Enter this path → Enter this path →Adopt AI an toàn từ user đến ứng dụng Adopt AI safely from users to applications Adopt AI safely from users to applications
Vào lộ trình này → Enter this path → Enter this path →Vận hành Cloudflare an toàn, ổn định và hiệu quả Operate Cloudflare safely, reliably, and efficiently Operate Cloudflare safely, reliably, and efficiently
Vào lộ trình này → Enter this path → Enter this path →Chưa chắc — làm bài chọn lộ trình Not sure — use the path selector Not sure — use the path selector · So sánh cả ba lộ trình Compare all three paths Compare all three paths