FiveM CDN and server resource caching

Two config lines.
Zero cold misses.

Add two lines to your server.cfg and players download your resources from the nearest Cloudflare edge instead of from your server. Joins get faster, your upload stays free for the game, and updates reach every player on their own.

✓ No firewall access✓ ~5 minute setup✓ No card for the free tier
server.cfg
# add these 2 lines, then restart

fileserver_add ".*" "https://cdn.fivemcdn.com/t/ab12cd34/files"
set adhesive_cdnKey "k9f2•••••••••••••"
Player joiningfrom the nearest edge
  • qb-core84 MB
  • cars-pack920 MB
  • legion-mlo610 MB
  • eup-clothing380 MB
  • loadscreen12 MB
2.0 GBfrom the FiveMCDN edge
0 MBfrom your game server
110+
FiveM servers on FiveMCDN
133M+
Files delivered, last 30 days
95.7%
From cache, last 30 days
330+
Edge cities worldwide
2 lines
Of config to onboard
The download screen problem

Slow asset delivery empties lobbies.

When resources download straight from your game server, every player hammers your origin bandwidth. Worse, on a cold cache the first joiners after a restart can stall past FiveM's ~2-minute pre-connect window and get bounced. It looks like you're rejecting your own lowest-spec players. They don't retry. They find another server.

Without FiveMCDN

Each joining player pulls every resource straight from your game server, so its upload is shared by everyone downloading at that moment.

Your serversends every fileto every playerPlayers
2.7 TB a monthsent from your own connection
With FiveMCDN

FiveMCDN fetches each file from your server one time. After that, players download it from the Cloudflare edge location nearest to them.

onceYour serverFiveMCDN edgePlayers
3 GB, oncesent from your server. FiveMCDN delivers the rest from the edge.

Example: 3 GB of resources, downloaded in full by 30 new players a day for 30 days. The lines show where downloads come from, not measured traffic.

Measured on FiveMCDN, last 30 days
39 TBdelivered for a single busy server. Without a CDN, that server sends all of it itself.
10×is how often a typical server's cached files were downloaded. The server sent each file once.

Your upload is the limit

Every file goes to every player from one machine. A busy server sends terabytes a month that way, and busy join times mean packet loss.

Stale files after updates

FiveM has no built-in cache busting. Update a script and players can still get the old version.

Failed joins after a restart

The first players after a restart can hit an empty cache, run past FiveM's two-minute window and fail to connect (issue #4009).

How it works

Live in three steps.

1

Add two lines

We generate your key and endpoint. Paste both lines into server.cfg and restart. That's the whole integration.

2

We cache at the edge

The first time a player needs a file, we fetch it from your server once and store it on Cloudflare's network. Every download after that comes from the nearest edge location.

3

It stays warm on its own

Your files stay cached at the edge, and our invalidation system keeps the cache in sync whenever you deploy, so only changed files re-fetch.

Dashboard

See what FiveMCDN does for your server.

Your dashboard shows how much players downloaded through FiveMCDN, how much of it came straight from cache, and where you stand against your plan.

  • Data served per day, for the last 30 days
  • Cache-hit rate and requests for every server
  • Bandwidth and storage against your plan, with an email before you reach a limit
fivemcdn.com/dashboardExample figures
Data served this cycle
3.6 TB
of 30 TB, resets on the 13th
Storage
38 GB
of 200 GB
Cache-hit rate, 7 days
97.4%
served without your server
Requests, 7 days
2.1M
file downloads by players
Data served, last 30 days5.0 TB
273 GB
Main city serveractive
203.0.113.24:30120
1.2 TBserved
97.4%from cache
Features

Everything the download screen needs.

Config-only onboarding

Paste one fileserver_add line plus a key into server.cfg. No firewall access, no reverse proxy, no SDK, no migration weekend. Works with shared and managed hosting.

Free automatic invalidation

Our own invalidation system picks up every update, so players never get a stale file. Change a resource and only the files that actually changed re-fetch, automatically. Nothing to bump, no paid purge button.

Always-warm cache

Your files stay cached at the edge. The first player to join fills the cache; everyone after them downloads from the nearest edge, not your origin. No preload step, no cold-download join failures.

Global edge network

Built on Cloudflare's global edge network. Players download byte-identical, cached assets from the nearest region. Your origin is contacted at most once per file.

Real-time analytics

See cache-hit rate, bandwidth saved, storage used, and origin fetches per server. Know exactly how much load you've offloaded.

Optional origin lock

Want to stop anyone who finds your origin IP from grabbing your paid scripts? Two optional lines lock the file server to Cloudflare's edge, no firewall rules needed. Off by default; caching works without it.

What everyone else upsells

Invalidation and a warm cache, free on every plan.

Competitors gate cache purge behind €15+ tiers. Ours is automatic and per file, and a warm edge cache keeps joins fast, both included on the free tier and up, along with firewall-free onboarding.

Automatic per-file invalidation Always-warm cache Config-only setup
Pricing

Honest, EUR-native pricing.

A real permanent free tier. No per-GB surprise metering. Cancel anytime.

Founding pricing: founding customers keep today's price for as long as they stay subscribed, whatever we charge later. Only 5 founding spots left.

Free

€0 forever

For solo devs and hobby communities. No card required.

  • 1 server
  • 10 GB edge cache storage
  • 1 TB / month bandwidth (fair use)
  • Full global edge network
  • Free automatic cache invalidation
  • Always-warm edge cache
  • Config-only setup, no firewall access
  • Day-by-day analytics, last 30 days
  • Community (Discord) support
Start free

Starter

€7.50 / month
Billed monthly, cancel anytime

For one production server that outgrew the free tier.

  • 1 server
  • 50 GB edge cache storage
  • 5 TB / month bandwidth
  • Everything in Free, plus:
  • Custom CDN link (your name instead of a random id)
  • Priority support
Get started

Network

€39 / month
Billed monthly, cancel anytime

For multi-server networks and hosting resellers.

  • Up to 5 servers
  • 1 TB edge cache storage
  • Unlimited bandwidth
  • Everything in Community, plus:
  • One cache shared across all your servers
  • Reseller / multi-tenant support
  • Dedicated onboarding
Get started
FAQ

Questions, answered.

What is FiveM asset caching?

Asset caching, also called resource caching, means your server's maps, vehicles, clothing, scripts and UI files are stored on a CDN after the first download. Players then get them from a location near them instead of from your server. That is what FiveMCDN does.

Do I need firewall or SSH access?

No. Setup is two lines in server.cfg, with no firewall, SSH, or reverse proxy involved, so it works on shared and managed hosting too. If you want, you can optionally add two more lines to lock your origin to Cloudflare's edge (FiveM's sv_proxyIPRanges + sv_httpFileServerProxyOnly, build 10543+), but it isn't required.

How does cache invalidation work?

Automatically, per file. Our own invalidation system picks up every update: the changed files are fetched fresh and the unchanged ones keep serving from cache. There's nothing to bump and no purge rate limits.

What causes the cold-miss join failures, and how do you avoid them?

With an external fileserver, a client whose download window exceeds ~2 minutes can time out during pre-connect (FiveM issue #4009). To your lowest-spec players it looks like the server rejected them. Because your files stay cached at the nearest edge and the first player to join fills anything new, real players almost never hit a cold miss.

Does it work with ESX / QBCore / txAdmin?

Yes. We sit in front of your existing resource downloads, so it's framework-agnostic. No code changes to your resources; just the config block.

Is adhesive_cdnKey required?

Yes. By default FiveM obfuscates files with a per-client key, so the same file is different bytes for every player and can't be shared from a cache. Setting adhesive_cdnKey forces one global key so every player gets byte-identical, cacheable files. We generate the key for you.

What happens if my origin goes offline?

Cached files keep serving from the edge even if your origin is down. Only never-before-seen files need your origin, and your warm cache makes those rare.

Warm your cache in five minutes.

Start free. No card, no firewall access, no migration. Just one line of config.