Skip to main content
FiveMesh Cache is a resource download proxy for FiveM servers. Players download resources through a FiveMesh cache URL. Cache hits are served from FiveMesh. Cache misses are fetched from your origin once, then reused until you purge or refresh the cache version.

Prerequisites

Before you enable Cache, confirm:
  • The active workspace has trial or subscription access.
  • The cfx.re server is registered in Account > Servers.
  • You can edit your server’s server.cfg.
  • You or your host can edit firewall and DDoS protection rules for the origin machine.
  • Your organization role can create Cache configuration if you are in an organization workspace.
Servers that use a direct-IP connection endpoint should use a domain or subdomain before Cache is enabled. Enabling Cache on a direct-IP endpoint can cause player connection errors. Point a domain or subdomain at the server IP, then use that hostname for Cache services. If you do not have one, open a Discord ticket to request a free FiveMesh subdomain.

Enable Cache

1

Open Cache

In the dashboard sidebar, open Cache.
2

Choose a registered server

In the Servers tab, find the registered server you want to cache.
3

Enable Cache

Click Enable Cache.
4

Copy the setup block

Copy the generated server.cfg block immediately.The block includes a fileserver_add line and an adhesive_cdnKey secret.
5

Update server.cfg

Paste the block into your server configuration and restart or reload your server according to your normal deployment process.
Example shape:
The adhesive key is only shown when it is created or rotated. If you lose it, rotate the key from Cache settings and update server.cfg.

Origin URL

FiveMesh detects an origin for the registered cfx.re server. In most cases, keep the detected origin. Change the origin URL only when the detected address is not the address Cache should use for resource downloads.

Allow FiveMesh to reach your origin

FiveMesh fetches cache misses from your origin through Cloudflare’s network. Game host firewalls and DDoS protection often filter data center traffic while allowing player traffic. If the origin machine or your host protects the fileserver port, allow Cloudflare’s published IP ranges on that TCP port before you enable Cache. The current ranges are listed at cloudflare.com/ips.
If the machine runs several FiveM servers, apply the same rule to every fileserver port. Protection rules that cover only one port cause download errors for the other servers.
If downloads fail after Cache is enabled while the server runs normally, see players get download errors while the server runs fine.

Next steps