Lộ trình cho website hoặc API đang chạy: kiến trúc, khi nào dùng từng lớp, rồi lab bấm theo trên dashboard.A path for a live website or API: the architecture, when to use each layer, then a dashboard lab.A path for a live website or API: the architecture, when to use each layer, then a dashboard lab.
Kết thúc bạn sẽ cóYou'll finish withពេលបញ្ចប់អ្នកនឹងមាន
Hai (hoặc ba) Cache Rules có thứ tự; quy trình purge gắn vào release.Two (or three) ordered Cache Rules; purge is part of the release process.Two (or three) Cache Rules មានលំដាប់; purge គឺផ្នែកនៃដំណើរការ release។
Trước khi bắt đầuBefore you beginមុនពេលចាប់ផ្តើម
Đã hiểu HIT/MISS (as-4-l1). Biết prefix asset và path nhạy cảm.You understand HIT/MISS (as-4-l1). You know asset prefixes and sensitive paths.អ្នកយល់ HIT/MISS (as-4-l1)។ អ្នកដឹង prefix របស់ asset និង path រសើប។
Gói / planPlanPlan
Số Cache Rules tùy plan. Page Rules là legacy — dùng Cache Rules.Cache Rule count depends on plan. Page Rules are legacy — use Cache Rules.កំណត់ចំនួន Cache Rule អាស្រ័យលើ plan។ Page Rules គឺ legacy — ប្រើ Cache Rules។
Làm theo từng bướcFollow alongធ្វើតាមជំហាន
1Caching → Cache Rules → Create rule: Bypass cache cho /admin* và /checkout*.Caching → Cache Rules → Create rule: Bypass cache for /admin* and /checkout*.Caching → Cache Rules → Create rule: Bypass cache សម្រាប់ /admin* និង /checkout*។
Nhập: Enter: បញ្ចូល៖ If hostname eq www.example.com AND URI Path starts with /admin OR /checkout → Cache eligibility: Bypass cacheIf hostname eq www.example.com AND URI Path starts with /admin OR /checkout → Cache eligibility: Bypass cacheIf hostname eq www.example.com AND URI Path starts with /admin OR /checkout → Cache eligibility: Bypass cache
2Rule thứ hai: Eligible for cache + Edge TTL (ví dụ 1 ngày hoặc 1 tuần) cho /assets/*.Second rule: Eligible for cache + Edge TTL (e.g. 1 day or 1 week) for /assets/*.Rule ទីពីរ: Eligible for cache + Edge TTL (e.g. 1 day or 1 week) សម្រាប់ /assets/*។
Nhập: Enter: បញ្ចូល៖ URI Path starts with /assets/ → Edge TTL: 1 day (override origin nếu origin gửi no-cache nhầm)URI Path starts with /assets/ → Edge TTL: 1 day (override origin if origin mistakenly sends no-cache)URI Path starts with /assets/ → Edge TTL: 1 day (override origin ប្រសិនបើ origin ផ្ញើ no-cache ខុស)
3Đặt rule cụ thể trên rule rộng. Purge sau mỗi release frontend.Put specific rules above broad ones. Purge after each frontend release.ដាក់ rule ជាក់លាក់ខាងលើ rule ទូលំទូលាយ។ Purge បន្ទាប់ពី frontend release នីមួយៗ។
Checkpoint: Checkpoint: Checkpoint៖ HTML admin không HIT. File hashed trong /assets/ HIT. Sau purge, file mới xuất hiện.Admin HTML does not HIT. Hashed files under /assets/ HIT. After purge, new files appear.HTML admin មិន HIT។ File hashed ក្រោម /assets/ HIT។ បន្ទាប់ពី purge, file ថ្មីលេចឡើង។
Cẩn thậnWatch outប្រុងប្រយ័ត្ន
Purge Everything trên site lớn — stampede về origin. Ưu tiên purge URL hoặc prefix.Purge Everything on a large site stampedes the origin. Prefer URL or prefix purge.Purge Everything លើ site ធំ stampede origin។ ចូលចិត្ត purge URL ឬ prefix។
TTL dài trên HTML không có versioned asset — user kẹt bản cũ.Long TTL on unversioned HTML leaves users on a stale page.TTL វែងលើ HTML គ្មាន version រក្សាអ្នកប្រើលើទំព័រ stale។
MẹoTipsគន្លឹះ
Hashed filenames (app.abc123.js) cho phép TTL dài an toàn.Hashed filenames (app.abc123.js) make long TTLs safe.Filename hashed (app.abc123.js) ធ្វើឱ្យ TTL វែងមានសុវត្ថិភាព។
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 ជិតបំផុត។
Dùng Cache Rules để mở rộng cache cho HTML hoặc path cụ thể. Với cache Miss, cân nhắc Tiered Cache hoặc custom cache key (ví dụ bỏ qua query string).Use Cache Rules to extend caching to HTML or specific paths. For cache Misses, enable Tiered Cache or create a custom cache key (e.g. ignore query strings).Use Cache Rules to extend caching to HTML or specific paths. For cache Misses, enable Tiered Cache or create a custom cache key (e.g. ignore query strings).
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.
Hướng dẫn này sử dụng Managed HSM của Microsoft Azure để triển khai một VM với keyless SSL daemon. Làm theo các hướng dẫn này để triển khai máy chủ không chìa khóa của bạn.
This tutorial uses Microsoft Azure's Managed HSM to deploy a VM with the Keyless SSL daemon. Follow these instructions to deploy your keyless server.
ការបង្រៀននេះប្រើ Microsoft Azure's Managed HSM ដើម្បីដាក់ពង្រាយ VM ជាមួយនឹងដេមិន Keyless SSL ។ អនុវត្តតាមការណែនាំទាំងនេះ ដើម្បីដាក់ឱ្យប្រើម៉ាស៊ីនមេដែលគ្មានសោរបស់អ្នក។
Cloudflare API (tham khảo)Cloudflare API (reference)Cloudflare API (reference)
Dùng khi tự động hóa bước này qua script hoặc Terraform — cần API token phù hợp.Use when automating this step via script or Terraform — requires an appropriate API token.Use when automating this step via script or Terraform — requires an appropriate API token.
Học xong hoặc muốn đổi hướng?Finished or want a different path?Finished or want a different path?
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.