---
title: Optimize Fast Data Transfer on Vercel
description: Find what drives Fast Data Transfer on Vercel, from heavy pages and bundles to bots and 404s, and reduce the bytes your project sends to visitors.
url: "https://vercel.com/kb/guide/optimize-fast-data-transfer"
published: 2026-12-03
last_updated: 2026-12-03
authors: Bernd Strehl
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest kb search "<query>"
read_with_vercel_cli: "npx vercel@latest kb inspect optimize-fast-data-transfer"
---

Fast Data Transfer is the data sent between Vercel's CDN and your visitors' devices. When its cost increases, the cause is usually one of three things: increased traffic, larger responses, or unwanted traffic. CDN caching doesn't lower it, because the CDN sends every byte of a cache HIT to the visitor. Only responses served from the browser's cache never reach Vercel.

This guide shows how to determine which cause applies, then reduce both the bytes your project sends and the unwanted requests it receives. The fixes focus on Next.js (App Router and Pages Router), but the investigation applies to any framework on Vercel.

## What counts toward Fast Data Transfer

Vercel measures [Fast Data Transfer](https://vercel.com/docs/manage-cdn-usage#fast-data-transfer) from the full size of each request and response that passes through the CDN, including the body, all headers, and the full URL. Incoming transfer counts requests and outgoing transfer counts responses. Outgoing is usually the larger share.

The CDN [compresses](https://vercel.com/docs/how-vercel-cdn-works/compression) responses with Brotli or gzip when the client sends an `Accept-Encoding` header and the content type is compressible. Fast Data Transfer counts bytes after compression, so an uncompressed response can cost several times as much.

A response that the browser serves from its own cache never reaches Vercel, so it incurs no Fast Data Transfer cost.

## Before you begin

Pick one team, project, environment, and time range, and keep them the same throughout. If usage recently increased, also note a period before the increase.

Check how your team pays for CDN usage in the Billing settings. With [Flat Rate CDN](https://vercel.com/docs/pricing/flat-rate-cdn), the default for new Pro teams, Fast Data Transfer and CDN Requests count toward a monthly capacity tier, so reducing usage pays off by keeping you in a lower tier. Compare both with your tier, because requests often reach their limit first. With On-demand CDN, Fast Data Transfer is [priced by region](https://vercel.com/docs/pricing/regional-pricing).

Observability keeps 12 hours of data on Hobby, 1 day on Pro, and 3 days on Enterprise. [Observability Plus](https://vercel.com/docs/observability/observability-plus#limitations) keeps 30 days and adds path-level breakdowns and `vercel metrics` queries. The examples use 7 days.

## 1\. Find the projects driving transfer

In the dashboard, open the team's [Usage page](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fusage&title=Open+Usage), select only the Fast Data Transfer product, and group by project. The **Daily Consumption Breakdown** shows which projects use the most.

![The Usage page's Daily Consumption Breakdown filtered to Fast Data Transfer, showing daily spend split by project.](https://images.ctfassets.net/hjgychtc108g/1EoBfUDioZRBGkJbeQlcrf/4a1f64c8b7d8a2859dd13512ec211fde/usage-fdt-by-project-light.png)

## 2\. Find the paths driving transfer

Open the project's [Observability](https://vercel.com/d?to=%2F%5Bteam%5D%2F%5Bproject%5D%2Fobservability&title=Go+to+Observability) page and select **Fast Data Transfer**. The **Paths** tab ranks request paths by Total Transfer, with Requests, Transfer In, and Transfer Out for each. Switch to Routes to group dynamic paths, or to Bot Name to see automated traffic.

![The Fast Data Transfer tab in Observability, showing transfer over the last seven days and request paths ranked by total transfer.](https://images.ctfassets.net/hjgychtc108g/5WU13cBclcfullRRBcXpIX/492088108a07377e7c2833c32ba72223/observability-fdt-paths-light.png)

The **Fast Data Transfer** tab is available on all plans. The breakdown by path and full request data require [Observability Plus](https://vercel.com/docs/observability/observability-plus), available on Pro and Enterprise. Without it, use the project-level charts for the totals, then measure your busiest pages directly in the browser, as described at the end of step 3.

Divide each path's **Transfer Out** by its requests to get bytes per response. Many requests, each with few bytes, point to high traffic. Fewer requests with many bytes each point to response size. If Transfer In is high instead, look at uploads, and at large cookies and headers on busy paths.

With Observability Plus, you can run the same ranking with the [Vercel CLI](https://vercel.com/docs/cli/metrics). Add `--order-by value` to sort by bytes, because grouped results are sorted by request count by default.

```bash
vercel metrics vercel.request.fdt_out_bytes \
  --scope <team> --project <project> --environment production --since 7d \
  --group-by requestPath --order-by value --limit 20
```

Then group by other dimensions that `vercel metrics schema` lists, such as `contentType`, `httpStatus`, `isPrefetchRequest`, `deploymentId`, `botName`, and `clientIp`. Add `--aggregation avg` to rank by bytes per request, and use `vercel.request.fdt_in_bytes` for request sizes.

### Without Observability Plus

The Fast Data Transfer tab shows project totals on all plans. To find busy paths and noisy clients, open the project's Firewall [Traffic page](https://vercel.com/docs/vercel-firewall/firewall-observability#traffic). It groups the past day's requests by path, client IP, user agent, and ASN. It shows request counts, not bytes.

Then measure those paths with the `curl` commands in step 4, or load them with the browser's Network panel open, caching disabled, and sort by transferred size. A browser always accepts compression, so only `curl` shows what clients without it receive.

## 3\. Interpret the pattern

| What you see                                                    | Likely cause                                                 | Start with                                                                                                                                                          | Confirm the fix                                  |
| --------------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| High outgoing bytes per request on a few paths                  | Heavy responses                                              | Step 4, by content type                                                                                                                                             | Bytes per request drops                          |
| Many requests, few bytes each                                   | High traffic                                                 | Group by `botCategory`, `clientUserAgent`, and `referrerHostname`. See [Bot Management](https://vercel.com/kb/guide/how-to-utilize-vercels-bot-management-features) | Requests from those clients drop                 |
| Bytes per request far above the compressed size                 | Clients without compression, or scrapers                     | Group by `clientUserAgent` and check `content-encoding`                                                                                                             | Bytes per request matches the compressed size    |
| One file name with several hashes, or old `deploymentId` values | Returning visitors download unchanged code after each deploy | Upgrade to Next.js 16.3 or later for [immutable static assets](https://vercel.com/changelog/optimized-cdn-caching-and-deploying-of-immutable-static-assets)         | Transfer per file name stays flat across deploys |
| A large `isPrefetchRequest` share                               | Prefetching links visitors rarely open                       | Prefetching, and the [Function Invocations guide](https://vercel.com/kb/guide/optimize-function-invocations)                                                        | Prefetch share drops, navigation stays fast      |
| A `contentType` without `content-encoding`                      | Not on the compression list, or no `Accept-Encoding`         | Uncompressed responses                                                                                                                                              | `content-encoding: br` or `gzip`                 |
| 404s or errors near the top of `httpStatus`                     | Stale references, retry loops, broken links, or probes       | Not-found and error responses, and [Skew Protection](https://vercel.com/docs/skew-protection)                                                                       | 404 transfer drops                               |
| Images or media lead `contentType`                              | Large originals, many widths, or big files in `public/`      | Images and media, and the [Image Optimization guide](https://vercel.com/kb/guide/reduce-image-optimization-costs-on-vercel)                                         | Bytes per image drops                            |

If usage increased recently, rerun the same ranking for the earlier period and compare. If transfer rose but requests didn't, group by `clientUserAgent` and `clientIp` before you compare deployments: a new client that doesn't accept compression raises bytes per request without any deploy. If both rose, check where the new requests come from.

For example, the project in the step 2 screenshot sent about 240 GB in seven days. Its top path, a JavaScript file, had 3.5 million requests and about 34 GB of outgoing transfer. Grouping by `httpStatus` showed a 10 KB cached not-found page for each one, and 404s made up 63% of outgoing transfer. Grouping by `clientIp` showed a single client: a tab open on an older deployment that retried a removed file in a loop with no limit. The lasting fix is in the retry logic. Because the tab still runs the old code, a Firewall rule that denies the client now stops the transfer.

## 4\. Reduce response size

Start with the item at the top of your ranking.

### Large HTML and page data

The HTML document is often the largest response on a page. In Next.js, much of it can be serialized data. The App Router inlines the [RSC payload](https://nextjs.org/docs/app/getting-started/server-and-client-components#how-do-server-and-client-components-work-in-nextjs) as `self.__next_f.push(...)` scripts, and the Pages Router serializes page props into the `__NEXT_DATA__` script. Client-side navigation and prefetching request this data separately, as `text/x-component` responses or from `/_next/data/`, unless the client router cache already holds it.

Download the page twice: once for the compressed size and encoding, once to inspect the decompressed HTML. `%header{}` requires curl 7.84 or later.

```bash
# Compressed body size, and the encoding the CDN used
curl -sS -H 'Accept-Encoding: br, gzip' -o /dev/null \
  -w 'body: %{size_download} bytes, encoding: %header{content-encoding}\n' \
  https://example.com/products

# Decompressed HTML to inspect
curl -sS --compressed -o page.html https://example.com/products
```

To see what the data contains, follow [How to optimize your document size in Next.js](https://vercel.com/kb/guide/how-to-optimize-your-document-size-in-next-js), or paste the RSC payload into the [RSC Parser](https://rsc-parser.vercel.app/). Common causes:

- Fields the page never renders, including nulls. CMS and commerce APIs return whole records.
  
- Translations for every locale. In one project, they made up two-thirds of a 1 MB page.
  
- Navigation, footers, and settings repeated on every page.
  
- Base64 images, or the same inline SVG repeated dozens of times.
  

In the App Router, pass only the fields that a Client Component renders, as described in [How to optimize RSC payload size](https://vercel.com/kb/guide/how-to-optimize-rsc-payload-size). In the Pages Router, return only what the page renders:

```tsx
export async function getStaticProps({ params }) {
  const product = await getProduct(params.slug)

  return {
    props: {
      // Before: product, which serializes every field and nested record
      product: {
        name: product.name,
        price: product.price,
        image: product.image.url,
        sizes: product.variants.map((variant) => variant.size),
      },
    },
    revalidate: 3600,
  }
}
```

### Large JavaScript bundles

A shared bundle incurs its full cost on every page view by a visitor without a warm browser cache. Using `page.html` from the previous section, list the scripts and stylesheets the page loads, with their compressed sizes:

```bash
grep -oE '(src|href)="/_next/static/[^"]+\.(js|css)"' page.html \
  | cut -d'"' -f2 | sort -u \
  | while read -r asset; do
      curl -sS -o /dev/null -H 'Accept-Encoding: br, gzip' \
        -w '%{size_download}\t%{url_effective}\n' "https://example.com$asset"
    done | sort -rn | head -10
```

This covers only the files in the initial HTML. Chunks loaded later show up in the **Network** panel, filtered to **JS**. To see what's inside a chunk, run the [Next.js Bundle Analyzer](https://nextjs.org/docs/app/guides/package-bundling#nextjs-bundle-analyzer) with `npx next analyze` (Next.js 16.1 and later, Turbopack), or [`@next/bundle-analyzer`](https://nextjs.org/docs/app/guides/package-bundling#nextbundle-analyzer-for-webpack) for Webpack builds. Click a large module to see the import chain that pulls it in.

Common causes:

- **Client code in the root layout or** `_app`**.** Client Components used in the root layout, such as providers and analytics SDKs, ship on every route, and so does everything imported in `_app`. Server Components add no client JavaScript.
  
- **Broad client boundaries.** Everything imported below a `'use client'` file enters the client bundle, so move the directive to the smallest interactive component. See [Server and Client Components](https://nextjs.org/docs/app/getting-started/server-and-client-components).
  
- **Packages with many exports.** Add icon and utility libraries to [`optimizePackageImports`](https://nextjs.org/docs/app/api-reference/config/next-config-js/optimizePackageImports), or import from specific paths.
  
- **The same package bundled twice.** In monorepos, check with `npm ls <package>` or `pnpm why <package>`, then pin one version.
  
- **Data shipped as code.** Locale files, translation catalogs, and base64-encoded images end up in the bundle, and base64-encoded data barely compresses. An icon file with embedded JPEGs can be 868 KB compressed, and 27 KB without them. Search chunks for `data:image` to find embedded images.
  
- **Heavy work that doesn't need the browser.** Move Markdown parsing, syntax highlighting, and chart rendering to Server Components. See [heavy client workloads](https://nextjs.org/docs/app/guides/package-bundling#heavy-client-workloads).
  
- **Features that load before anyone uses them.** Use [lazy loading](https://nextjs.org/docs/app/guides/lazy-loading) for modals, editors, and maps, and the [Script component](https://nextjs.org/docs/app/guides/scripts) for third-party scripts on the routes that need them.
  

Third-party scripts loaded from the vendor's domain don't count toward your Fast Data Transfer, unless you serve or proxy them through your own Vercel domain.

### Large or duplicated CSS

To see how much of a stylesheet a page uses, open the Coverage panel in Chrome DevTools and reload. Common causes:

- **One global stylesheet for the whole site.** Import component styles where they're used, with [CSS Modules or Tailwind CSS](https://nextjs.org/docs/app/getting-started/css). Splitting CSS adds requests on the first page load.
  
- **Two styling systems at once.** Sites that migrated between frameworks often still ship both.
  
- **Unused utility classes and legacy stylesheets.** Check that Tailwind CSS only scans the files that contain your markup.
  
- **Runtime CSS-in-JS.** It adds `<style>` tags to the HTML of every response. See [How to optimize your document size in Next.js](https://vercel.com/kb/guide/how-to-optimize-your-document-size-in-next-js#3-choose-your-css-approach-wisely).
  
- **Icon sprites and fonts embedded in CSS.** Ship only the icons the site uses, and load fonts as separate files.
  

### Fonts, images, and media

With [`next/font`](https://nextjs.org/docs/app/getting-started/fonts), load only the weights you use and set `subsets`. Subset local fonts and convert them to WOFF2 first: in one project, a full variable TTF of almost 800 KB accounted for about 13% of the transfer.

For images, check the largest files and the requested widths. Set `sizes` on `next/image` with `fill`, because without it the browser assumes the image is as wide as the viewport. Serving images without optimization lowers [Image Optimization costs](https://vercel.com/kb/guide/reduce-image-optimization-costs-on-vercel) but can increase Fast Data Transfer costs. For video, set `preload="none"` or `preload="metadata"`.

### Uncompressed responses

The CDN only compresses [content types on its list](https://vercel.com/docs/how-vercel-cdn-works/compression#automatically-compressed-mime-types), so set the correct `Content-Type`. Clients that don't send `Accept-Encoding`, such as scripts and some bots, always get full-size responses: one scraper received about 900 KB per page instead of 250 KB.

## 5\. Reduce unwanted requests

For responses you don't need to send, check the referrer and the client, then request them less often or stop serving them.

### Prefetching

Reduce prefetching on dense lists and links visitors rarely open. In the Next.js App Router, [`prefetch={false}`](https://nextjs.org/docs/app/api-reference/components/link#prefetch) turns it off, and [hover-triggered prefetch](https://nextjs.org/docs/app/guides/prefetching#hover-triggered-prefetch) keeps those links fast. In the Pages Router, [`prefetch={false}`](https://nextjs.org/docs/pages/api-reference/components/link#prefetch) still prefetches on hover. Less prefetching makes the first click slower. If prefetches also run Functions, see [Optimize Function Invocations](https://vercel.com/kb/guide/optimize-function-invocations).

### Not-found and error responses

These usually come from your own pages referencing removed files or routes. If a few clients send millions of requests, look for code that retries indefinitely, and deny or rate-limit those clients in the Firewall while you fix it. [Skew Protection](https://vercel.com/docs/skew-protection) keeps the framework's own requests from open tabs on the deployment they loaded, up to the project's maximum age. Requests your own code makes still reach the latest deployment. Keep the not-found page small.

### Bots and scrapers

Measure before you block: in one project, crawlers accounted for less than 0.4% of the increase, and in another, one scraper increased daily transfers by 17 times. Group by `botName` first so you don't block search and AI crawlers you want. Then use the [Bot Protection managed ruleset](https://vercel.com/docs/vercel-firewall/vercel-waf/managed-rulesets), [custom rules](https://vercel.com/docs/vercel-firewall/vercel-waf/custom-rules), or [rate limiting](https://vercel.com/docs/vercel-firewall/vercel-waf/rate-limiting). Requests that the Firewall denies, challenges, or rate-limits [don't count](https://vercel.com/docs/vercel-firewall/vercel-waf/usage-and-pricing#free-features-usage) toward Fast Data Transfer.

### Downloads, streams, and polling

Files served from a public [Vercel Blob](https://vercel.com/docs/vercel-blob/usage-and-pricing) store bill Blob Data Transfer instead of Fast Data Transfer. Files streamed through a Function from a private store still count. For streams and polling, which caused 61% of one project's transfer, send changes instead of full snapshots, stop when the client disconnects, and poll less often.

## 6\. Verify the fix

After deploying your changes, compare the same paths over comparable time ranges before and after the release, such as the same weekdays. Skip the deploy day. Returning visitors may download changed JavaScript and CSS files on their first visit to the new deployment, which can raise transfer for a short time.

Compare bytes per request for a path you changed:

```bash
vercel metrics vercel.request.fdt_out_bytes \
  --scope <team> --project <project> --environment production \
  --query 'requestPath:"<path>"' --aggregation avg \
  --since <start> --until <end>
```

Run the command once for the range before the release and once for the range after it. Then check the **Confirm the fix** column in step 3 for each cause you fixed, and these indicators:

- Total outgoing Fast Data Transfer for the project
  
- Request count, to confirm the savings didn't come from less traffic
  
- The share of each content type and status code
  
- Single-page sizes, by rerunning the `curl` measurements from step 4
  
- CDN Requests, which also drop when you remove prefetching, bot traffic, or 404s, and Function Invocations, if those requests ran a Function
  

Also check that the change didn't make the site slower. Reducing prefetching can slow down navigation, and lazy loading can move work to the moment a visitor interacts. Compare [Largest Contentful Paint](https://vercel.com/docs/speed-insights/metrics#largest-contentful-paint-lcp) and [Interaction to Next Paint](https://vercel.com/docs/speed-insights/metrics#interaction-to-next-paint-inp) in Speed Insights for the same routes.

A lower total alone isn't proof. Traffic, the route mix, or bot activity may have changed during the same period. A working fix lowers bytes per request on the affected paths across comparable time ranges, without raising error rates or regressing Core Web Vitals.

## Investigate with an agent

To hand the investigation to a coding agent, give it the team, project, and time range, and a period before the increase if usage went up. The prompt starts read-only and asks for evidence for each finding.

### Agent prompt

```txt
Find what drives Fast Data Transfer for <project> in <team> over the last 7 days, and how to reduce it.
Read and follow the guide using the Vercel CLI: `npx vercel@latest kb inspect optimize-fast-data-transfer`.
Start read-only. First, inspect the metrics schema for that team scope. It is the source of truth for available metrics and dimensions:

  vercel metrics schema vercel.request.fdt_out_bytes --scope <team> --json

Rank outgoing transfer by path. Order by value, because grouped results are ordered by request count by default:

  vercel metrics vercel.request.fdt_out_bytes --scope <team> --project <project> --environment production --since 7d --group-by requestPath --order-by value --limit 50 --json

Repeat the query grouped by contentType, httpStatus, isPrefetchRequest, deploymentId, skewProtection, and botCategory, skipping any dimension the schema doesn't list. For the top paths, also query with --aggregation avg to get bytes per request, and query vercel.request.count to tell high-traffic paths from heavy responses. To inspect one path, add --query 'requestPath:"<path>"' and group by referrerHostname, clientUserAgent, and clientIp. To exclude values, use --query 'NOT httpStatus:404'.
If these metrics are unavailable (they require Observability Plus), say so in your findings and continue with the page measurements below.

Only if I give you a period before an increase: run the same queries for that period, compare the results, and check what was deployed in between:

  vercel list <project> --scope <team> --environment production --status READY
  vercel inspect <deployment-id-or-url> --scope <team>

For the three highest-traffic pages, measure the production response:
- Transferred and decompressed HTML size, content-encoding, and the share of RSC payload, __NEXT_DATA__, and inline SVG
- Every JavaScript and CSS file the page loads, with its compressed size
- Prefetch requests made without user interaction
If a browser automation tool is available, record a HAR of a cold page load and rank responses by transferred bytes.

Download the largest responses, decompress them, and pretty-print minified JavaScript and JSON. Check each one for the bloat patterns in section 4 of the guide, and report how many bytes each pattern accounts for in that file.

Then map each large response to its source in the codebase: root layouts and _app, 'use client' boundaries, data passed to Client Components or returned from getStaticProps and getServerSideProps, translation loading, icon and SVG components, global CSS, fonts, next.config images settings, and Link prefetch usage. If the Next.js Bundle Analyzer is available, run `npx next analyze --output` and report the largest client modules with their import chains.

Return, for each finding: the path or file, bytes per request and total bytes over the 7 days, the cause from section 4 of the guide, the code location, the smallest fix, its tradeoff, and how to verify it. Rank findings by estimated bytes saved, and include current measurements as the baseline for verification. Do not recommend a fix without evidence for it. Do not edit, deploy, change settings, purge caches, or mutate data without my explicit approval.

To find other KB guides, such as ones on related topics or next steps, search the Vercel Knowledge Base with the Vercel CLI:
`npx vercel@latest kb search "<topic>"`
```

For JavaScript bundles in Next.js 16.4 and later, the [`next-bundle-optimizer`](https://nextjs.org/docs/app/guides/package-bundling#give-your-ai-agent-access-to-the-bundle-analyzer) skill gives your agent direct access to the Bundle Analyzer data.

### Vercel Plugin

The Vercel plugin turns your AI coding agent (e.g., OpenAI Codex, Claude Code, or Cursor) into a Vercel expert. The plugin is optional; it isn't required to follow this guide.

```bash
npx plugins add vercel/vercel-plugin
```

## Next steps

- Read [CDN pricing and usage](https://vercel.com/docs/manage-cdn-usage) for how Fast Data Transfer, Fast Origin Transfer, and CDN Requests are calculated.
  
- Use [Query in Observability](https://vercel.com/docs/query) to build saved views of transfer by path, content type, and status code.
  
- Reduce serialized data with [How to optimize RSC payload size](https://vercel.com/kb/guide/how-to-optimize-rsc-payload-size).
  
- If prefetching or bots also drive compute, follow [Troubleshoot and optimize Function Invocations on Vercel](https://vercel.com/kb/guide/optimize-function-invocations).

## More Vercel CDN guides

- [Using Cloudflare and other reverse proxies with Vercel](/kb/guide/can-i-use-a-proxy-on-top-of-my-vercel-deployment): General information about using an external proxy to serve a Vercel Deployment.
- [Optimize Runtime Cache on Vercel](/kb/guide/optimize-runtime-cache-reads-on-vercel): Diagnose rising Runtime Cache usage, trace reads to tags and code paths, and reduce avoidable reads while checking write cost and origin traffic.
- [Control CDN caching for shared and personalized pages on Vercel](/kb/guide/cdn-cache-personalized-pages): Control CDN caching for shared and personalized Next.js pages. Set cache headers, separate per-user content, and verify responses on Vercel.

## Reference Architecture

Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.

- [Agent stack](/kb/architecture/agents): Build and operate agents with models, tools, and durable workflows.
- [Web applications](/kb/architecture/web): Choose rendering, data, authentication, and caching approaches.
- [Backends](/kb/architecture/backends): Choose a runtime, connect services, and run background work.

[Browse all stacks](/kb/architecture)

## Build with prompts

Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.

[Browse the prompt library](/kb/prompts) · [Read the Markdown index](/kb/prompts.md)

## Search guides from your terminal

Search the Knowledge Base and read guides as Markdown with the Vercel CLI. No login required.

```bash
# Find guides by keyword
npx vercel@latest kb search "rewrites and redirects"
npx vercel@latest kb search "AI SDK streaming"

# Show the latest guides
npx vercel@latest kb

# Print a guide as Markdown, by slug or URL
npx vercel@latest kb inspect <guide>
```
