跳转到主要内容
本章内容91
-
01
Changelog
import { ProductChangelog } from "~/components";
{/* <!-- Actual content lives in /src/content/changelog/ca...
1 天前
-
02
Get started
import { GlossaryTooltip } from "~/components"
Cloudflare speeds up your website by caching content across ...
1 天前
-
03
Glossary
import { Glossary } from "~/components"
Review the definitions for terms used across Cloudflare's Cache doc...
1 天前
-
04
Cloudflare Cache
import { CardGrid, Description, Feature, GlossaryTooltip, LinkTitleCard, Plan, RelatedProduct, Stream } fro...
1 天前
-
05
Cache Reserve
import { Render, TabItem, Tabs, APIRequest, DashButton } from "~/components";
Content in Cache Reserve is c...
1 天前
-
06
Crawler Hints
import { DashButton } from "~/components"
Crawler Hints uses Cloudflare cache signals to tell search engine...
1 天前
-
07
Early Hints
import { DashButton } from "~/components"
When a browser requests a page, the origin server takes time to p...
1 天前
-
08
Advanced configuration
import { DirectoryListing } from "~/components"
Learn how to complete different configuration options to cu...
1 天前
-
09
Query String Sort
Query String Sort increases cache-hit rates by first sorting query strings into a consistent order before c...
1 天前
-
10
Serving tailored content with Cloudflare
import { DashButton, APIRequest } from "~/components";
Content negotiation is the practice of serving diffe...
1 天前
-
11
Vary for images
import { Details, APIRequest } from "~/components"
The
Vary HTTP response header tells Cloudflare that an ...
1 天前
-
12
Avoid web cache poisoning
A cache poisoning attack uses an HTTP request to trick an origin web server into responding with a harmful ...
1 天前
-
13
Cache Deception Armor
import { DashButton } from "~/components";
Web Cache Deception attacks
A Web Cache Deception attack tricks ...
1 天前
-
14
Cross-Origin Resource Sharing (CORS)
A cross-origin request occurs when a webpage on one origin (for example,
a.example.com) requests a resourc...
1 天前
-
15
Cache security
import { DirectoryListing } from "~/components"
Review the following content to learn more about cache secu...
1 天前
-
16
Head Requests and Set-Cookie Headers
This page describes how Cloudflare's cache system behaves in interaction with:
HEAD requests
Set-Cookie res...
1 天前
-
17
Origin Cache Control
import { Details } from "~/components"
Origin Cache Control is a Cloudflare feature. When enabled on an Ent...
1 天前
-
18
Cloudflare cache responses
The
CF-Cache-Status header output indicates whether a resource is cached or not. To investigate cache resp...
1 天前
-
19
CDN-Cache-Control
CDN-Cache-Control is a response header field set on the origin to separately control the behavior of CDN ca...
1 天前
-
20
Customize cache
Some possible combinations of origin web server settings and Cloudflare Cache Rules include:
Create a direc...
1 天前
-
21
Default cache behavior
import { GlossaryTooltip, Render, DashButton } from "~/components"
Cloudflare respects the origin web serve...
1 天前
-
22
Concepts
import { DirectoryListing } from "~/components"
Review the following topics to learn more about the basic c...
1 天前
-
23
Retention vs Freshness (TTL)
In the context of Cloudflare CDN (Content Delivery Network), retention and freshness refer to two separate ...
1 天前
-
24
Revalidation
Cloudflare revalidates cached content with your origin after the content expires. To revalidate cached cont...
1 天前
-
25
Vary
The
Vary HTTP response header tells Cloudflare that an origin can serve different responses for the same U...
1 天前
-
26
Guides
import { DirectoryListing } from "~/components";
Follow these guides to manage cached content and verify re...
1 天前
-
27
Invalidate cached content
import { DashButton, Steps } from "~/components";
Invalidation marks cached content as stale. On the next r...
1 天前
-
28
Always Online
import { DashButton } from "~/components"
Cloudflare’s Always Online feature is now integrated with the Int...
1 天前
-
29
Cache keys
import { DashButton } from "~/components"
A Cache Key is an identifier that Cloudflare uses for a file in o...
1 天前
-
30
Cache by status code
import { Render } from "~/components"
Customers can set cache time-to-live (TTL) based on the response stat...
1 天前
-
31
Cache configuration
import { DirectoryListing } from "~/components"
Learn how to complete different configuration options to cu...
1 天前
-
32
Caching levels
Caching levels determine how much of your website’s static content Cloudflare should cache. Cloudflare’s CD...
1 天前
-
33
Tiered Cache
import { Details, APIRequest, Render, DashButton } from "~/components";
Tiered Cache uses the size of the C...
1 天前
-
34
Create a rule via API
import { Details, APIRequest } from "~/components";
Use the Rulesets API to create a Cache Response Rule vi...
1 天前
-
35
Create a rule in the dashboard
import { Render, DashButton } from "~/components";
In the Cloudflare dashboard, go to Cache > Cache Rules.
...
1 天前
-
36
Cache Response Rules
import { InlineBadge, Render } from "~/components";
Cache Response Rules allow you to configure cache setti...
1 天前
-
37
Available settings
import { Details } from "~/components";
These are the settings that you can configure when creating a Cache...
1 天前
-
38
Terraform example
import { Details, Render } from "~/components";
The following example defines a single Cache Response Rule ...
1 天前
-
39
Create a rule via API
import { Details, APIRequest } from "~/components"
Use the Rulesets API to create a cache rule via API. To ...
1 天前
-
40
Create a rule in the dashboard
import { Render, DashButton } from "~/components";
In the Cloudflare dashboard, go to the Cache Rules page....
1 天前
-
41
Cache Rules
import { Render } from "~/components";
Use Cache Rules to customize cache settings on Cloudflare. Cache Rul...
1 天前
-
42
Order and priority
import { Render } from "~/components"
Cache rules affect requests differently from Page Rules. This is how ...
1 天前
-
43
Migration from Page Rules
import { TabItem, Tabs } from "~/components"
If you are migrating from Page Rules, there is a behavior chan...
1 天前
-
44
Available settings
import { Details } from "~/components";
These are the settings that you can configure when creating a cache...
1 天前
-
45
Terraform example
import { Details, Render } from "~/components";
The following example defines a single cache rule for a zon...
1 天前
-
46
Browser Cache TTL
import { Example, Render } from "~/components";
Create a cache rule to adjust browser cache TTL for caching...
1 天前
-
47
Bypass Cache on Cookie
import { Example, Render } from "~/components";
Create a cache rule to bypass cache for requests containing...
1 天前
-
48
Cache everything for hostnames in a list
import { Example } from "~/components"
Create a cache rule to cache everything for hostnames that match a c...
1 天前
-
49
Cache Deception Armor
import { Example, Render } from "~/components";
Create a cache rule to protect against cache deception atta...
1 天前
-
50
Cache by Device Type
import { Example, Render } from "~/components";
Create a cache rule to cache content based on user agent or...
1 天前
-
51
Cache Everything while ignoring query strings
import { Example, Render } from "~/components";
Create a cache rule to adjust cache level for any hostname ...
1 天前
-
52
Cache Level (Cache Everything)
import { Example, Render } from "~/components";
Create a cache rule to adjust cache level for any hostname ...
1 天前
-
53
Cache TTL by status code
import { Example, Render } from "~/components";
Create a cache rule to cache responses with status code bet...
1 天前
-
54
Custom Cache Key
import { Example, Render } from "~/components";
Create a cache rule to set a custom cache key for all query...
1 天前
-
55
Edge Cache TTL
import { Example } from "~/components";
Create a cache rule to adjust edge cache TTL for caching resources ...
1 天前
-
56
Examples
import { DirectoryListing } from "~/components"
In the following sections, you can find common cache rules ...
1 天前
-
57
Origin Cache Control
import { Example } from "~/components"
Create a cache rule to determine edge cache behavior for any hostnam...
1 天前
-
58
Query String Sort
import { Example } from "~/components"
Create a cache rule to sort query string parameters for caching purp...
1 天前
-
59
Respect Strong ETags
import { Example } from "~/components"
Create a cache rule to respect strong ETags for any hostname contain...
1 天前
-
60
Edge and Browser Cache TTL
Edge Cache TTL (Time to Live) specifies the maximum time to cache a resource in the Cloudflare global netwo...
1 天前
-
61
Set Browser Cache TTL
import { DashButton } from "~/components";
Specify a time for a visitor’s Browser Cache TTL to accelerate t...
1 天前
-
62
Purge cache
import { DirectoryListing } from "~/components";
export const limitsDetails =
"If your account includes zon...
1 天前
-
63
Purge cache by hostname
import { DashButton } from "~/components"
Purging by hostname means that all assets at URLs with a host tha...
1 天前
-
64
Purge by single-file
import { DashButton } from "~/components"
With purge by single-file, cached resources are instantly removed...
1 天前
-
65
Purge cache by cache-tags
import { DashButton } from "~/components"
Cache-tag purging makes multi-file purging easier because you can...
1 天前
-
66
Purge cache key resources
import { APIRequest } from "~/components";
Instantly purge resources that use Cache Keys via the Cloudflare...
1 天前
-
67
Purge everything
import { DashButton } from "~/components"
To maintain optimal site performance, Cloudflare strongly recomme...
1 天前
-
68
Purge varied images
Purging varied images instantly purges all content variants for that URL. This behavior occurs so that if a...
1 天前
-
69
Purge zone versions via API
To purge zone versions via the Cloudflare API, follow these steps:
Step 1: Retrieve the environment ID
Firs...
1 天前
-
70
Purge cache by prefix (URL)
import { DashButton } from "~/components"
You can instantly purge their cache by URL prefix or path separat...
1 天前
-
71
Interaction with Cloudflare products
import { DirectoryListing } from "~/components"
Cloudflare caches content at data centers close to your vis...
1 天前
-
72
Enable cache in an R2 bucket
By default, R2 buckets are private. To serve R2 objects through Cloudflare's cache, you need to attach a do...
1 天前
-
73
Control cache access with WAF and Snippets
When you make an R2 bucket publicly accessible for caching (via a Custom Domain), anyone who knows the URL ...
1 天前
-
74
How Workers interact with Cache Rules
When you use both Cache Rules and Workers on the same request, the Worker's cache settings take priority — ...
1 天前
-
75
Customize cache behavior with Workers
You can use Workers to customize cache behavior on Cloudflare's network. Workers run as middleware in the r...
1 天前
-
76
Cache Analytics
import { DashButton } from "~/components"
Cache Analytics shows how much of your site's traffic is served f...
1 天前
-
77
Cache performance
Your cache ratio measures how often Cloudflare serves content from cache instead of contacting your origin ...
1 天前
-
78
Performance review
import { DirectoryListing } from "~/components"
Use Cache Analytics to understand how effectively Cloudflar...
1 天前
-
79
CSAM Scanning Tool
The Child Sexual Abuse Material (CSAM) Scanning Tool allows website owners to proactively identify and take...
1 天前
-
80
Development Mode
import { DashButton } from "~/components"
Development Mode temporarily suspends Cloudflare's edge caching a...
1 天前
-
81
Using ETag Headers with Cloudflare
ETag headers identify whether the version of a resource cached in the browser is the same as the resource a...
1 天前
-
82
Reference
import { DirectoryListing } from "~/components"
Review the reference content to learn more about specific c...
1 天前
-
83
Range request behavior
Cloudflare can serve HTTP range requests from complete or partial cached files. Origin Range Requests let C...
1 天前
-
84
Always Online
Observe the following best practices when enabling Always Online with Internet Archive integration.
Allow r...
1 天前
-
85
Bot Management cookie causes cache bypass in O2O setups
In Orange-to-Orange (O2O) setups — where a SaaS provider uses Cloudflare for SaaS and their customer also h...
1 天前
-
86
Dynamic content and login issues
Dynamic pages such as login forms, checkout flows, and authenticated application routes can break when they...
1 天前
-
87
edgeResponseBytes and cacheResponseBytes discrepancy
In HTTP request logs,
cacheResponseBytes reflects the uncompressed response size from cache or origin.
ed...
1 天前
-
88
Troubleshooting
import { DirectoryListing } from "~/components"
The following topics are useful for troubleshooting Cache i...
1 天前
-
89
Investigate latency on tiered requests
Some requests for the same URL are slow while others are fast. If the slow requests have a
cf-cache-status...
1 天前
-
90
Investigate uncached responses
If a URL you expected to be cached is served from the origin every time, the
cf-cache-status response head...
1 天前
-
91
Issues with MP4 videos on iOS and Safari
import { DashButton } from "~/components";
When traffic is proxied through Cloudflare, Safari on macOS and ...
1 天前