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.
# add these 2 lines, then restart
fileserver_add ".*" "https://cdn.fivemcdn.com/t/ab12cd34/files"
set adhesive_cdnKey "k9f2•••••••••••••"- qb-core84 MB
- cars-pack920 MB
- legion-mlo610 MB
- eup-clothing380 MB
- loadscreen12 MB
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.
Each joining player pulls every resource straight from your game server, so its upload is shared by everyone downloading at that moment.
FiveMCDN fetches each file from your server one time. After that, players download it from the Cloudflare edge location nearest to them.
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.
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).
Live in three steps.
Add two lines
We generate your key and endpoint. Paste both lines into server.cfg and restart. That's the whole integration.
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.
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.
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
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.
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.
Honest, EUR-native pricing.
A real permanent free tier. No per-GB surprise metering. Cancel anytime.
Free
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
Starter
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
Community
For established RP servers that outgrew the free tier.
- Up to 3 servers
- 200 GB edge cache storage
- 30 TB / month bandwidth
- Everything in Free, plus:
- Shared cache across your servers
- Custom CDN link (your name instead of a random id)
- Priority support
Network
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
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.