Skip to content

How charges accrue

Every request to a Cloudflare-proxied domain can touch multiple products, each with its own billing dimension. This page walks through a realistic request lifecycle and shows which products generate charges at each stage.

Understanding this flow helps you predict costs, identify optimization opportunities, and make sense of your invoice.

A request through a Pro zone

Consider a visitor loading a page on a Pro domain that uses Workers, R2, Argo Smart Routing, and Cache Reserve. Here is what happens at each stage and which billable resources are involved.

1. DNS resolution

The visitor's browser resolves the domain. This DNS query is handled by Cloudflare's authoritative DNS.

ResourceBilling impact
DNS queriesIncluded in all plans at no extra charge. If you use Load Balancing, DNS queries to load-balanced hostnames are metered (first 500K included).

2. Edge request and TLS

The request arrives at the nearest Cloudflare data center. Cloudflare terminates TLS and processes the request.

ResourceBilling impact
TLS/SSLIncluded in all plans. Advanced Certificate Manager and SSL for SaaS have separate pricing.

3. Cache lookup

Cloudflare checks whether a cached response exists for this request.

Cache hit — the response is served directly from the edge. No origin fetch occurs. This is the cheapest path.

ResourceBilling impact
BandwidthIncluded in all plans. Cloudflare does not charge for bandwidth.
Cache Reserve readsIf Cache Reserve is enabled and the asset is served from tiered cache storage, reads are metered. Refer to Cache Reserve pricing for current rates.

Cache miss — the request must be forwarded to the origin. Continue to step 4.

4. Argo Smart Routing (if enabled)

If Argo is enabled, Cloudflare routes the request through the fastest path across its network to your origin.

ResourceBilling impact
Argo data transferMetered per GB transferred between Cloudflare and your origin. First 1 GB included. Refer to Argo Smart Routing for current rates.

5. Workers execution (if configured)

If a Worker is bound to the route, it executes before or instead of fetching from the origin.

ResourceBilling impact
Worker requestsMetered per invocation. Workers Paid plan includes 10 million requests. Refer to Workers pricing for current rates.
Worker CPU timeMetered per millisecond of CPU time. 30 million CPU-ms included. Refer to Workers pricing for current rates.
Workers KV reads/writesIf the Worker reads from or writes to KV, each operation is metered separately. Refer to KV pricing for current rates.

6. Origin fetch and response

If the Worker or cache miss triggers an origin fetch, Cloudflare retrieves the response from your origin server.

ResourceBilling impact
BandwidthNo charge for data transfer between Cloudflare and your origin (no egress fees).

7. R2 storage operations (if used)

If the Worker or origin logic reads from or writes to R2, each operation is metered.

ResourceBilling impact
R2 Class A operations (writes)First 1 million included. Refer to R2 pricing for current rates.
R2 Class B operations (reads)First 10 million included. Refer to R2 pricing for current rates.
R2 storageFirst 10 GB-month included. Refer to R2 pricing for current rates.
R2 data egressFree. Cloudflare does not charge for R2 egress.

8. Cache write (miss path)

After fetching from the origin, Cloudflare caches the response at the edge for future requests.

ResourceBilling impact
Cache Reserve writesIf Cache Reserve is enabled, writes are metered. Refer to Cache Reserve pricing for current rates.

9. Image Resizing (if configured)

If the request triggers Image Resizing (via URL parameters or a Worker), the transformation is metered.

ResourceBilling impact
Image transformationsFirst 50,000 included on the Business plan, then metered per request. Refer to Images pricing for current rates.

10. Response delivered

The final response is sent to the visitor. No additional charges apply at this stage.

What this means for your invoice

A single page load can generate dozens of requests. Each request may touch a different combination of the products above. Your monthly invoice aggregates all of these individual operations across all requests, all domains, and the full billing period.

The key takeaway: cached responses are the cheapest path. Every cache hit avoids origin fetch costs, Argo routing charges, Workers execution, and R2 operations. Optimizing your cache hit ratio is the single most effective way to reduce usage-based charges.

Cost optimization strategies

StrategyProducts affectedImpact
Maximize cache hit ratio with appropriate Cache-Control headersArgo, Workers, origin bandwidthHigh — every cache hit eliminates origin-side costs
Use Cache Reserve for long-tail contentCache, originMedium — reduces origin fetches for infrequently accessed content
Set appropriate TTLs to avoid unnecessary revalidationCache, ArgoMedium — reduces origin round-trips
Use Workers Smart Placement to run Workers closer to your dataWorkers CPU timeMedium — reduces execution time for data-dependent Workers
Use R2 lifecycle rules to move infrequently accessed data to Infrequent Access tierR2 storageMedium — reduces storage costs for archival data
Monitor usage with the billable usage dashboardAll usage-based productsHigh — visibility is the first step to optimization
Set up budget alerts to catch unexpected spikesAll usage-based productsHigh — prevents surprise invoices