Under attack? IT Try it free
Manual

How to use 1PrimeCDN

The same manual you find inside the panel, readable without an account.

What 1PrimeCDN is

1PrimeCDN copies your website's files (images, CSS, JavaScript, videos, PDFs) to its nodes, called PoPs, and serves them to visitors from the nearest node. Your site loads faster and your server does much less work.

It works on a «pull» basis: the first time a file is requested, the PoP downloads it from your server (the origin) and keeps it in cache. Later requests are served directly by the PoP.

You pay a fixed monthly fee: Start €9.90 up to 1 TB, Scale €24.90 up to 5 TB, Unlimited €50 with no GB counting (up to 200 Mbit/s). No per-request fees and no bill adjustments. The European nodes come with every plan; the nodes outside Europe are the «Global network» add-on, €24.90 a month.

Creating your first Pull Zone

  1. Go to Pull Zone and press «+ Add Pull Zone».
  2. Choose a name (lowercase letters, numbers and hyphens): it becomes the address name.primecdn.it.
  3. Enter the full address of your site, for example https://www.mysite.com. This is the origin 1PrimeCDN downloads the files from.
  4. Press «Create Pull Zone». The zone is active right away.

From now on a file like https://www.mysite.com/images/photo.jpg is also available at https://name.primecdn.it/images/photo.jpg.

Using your own domain (e.g. cdn.mysite.com)

  1. Open the Pull Zone and go to «Hostnames and SSL».
  2. In your domain's DNS panel create a CNAME record: name «cdn», target the zone address (name.primecdn.it).
  3. Go back to 1PrimeCDN, type cdn.mysite.com and press «Add».
  4. After a few minutes press «Verify»: once the CNAME is correct, the HTTPS certificate is issued automatically and for free.
cdn.mysite.com.   3600   IN   CNAME   name.primecdn.it.

DNS changes can take anywhere from a few minutes to a few hours. If «Verify» says the CNAME does not point to the zone yet, try again later.

Connecting the CDN to your site

For visitors to use the CDN, the addresses of your site's images and static files must point to the CDN domain.

To check that it works, open an image from the CDN and look at the X-Cache header: MISS the first time, HIT from then on.

DNS: managing your domains on 1PrimeCDN

With 1PrimeCDN DNS you manage all of a domain's records from the panel and can put any subdomain on the CDN with one click, including the main domain.

  1. Go to DNS, type the domain (without www) and press «Add domain».
  2. Check the imported records: site, www, mail (MX) and verifications (TXT). Add any that are missing.
  3. At your registrar (where you bought the domain) replace the nameservers with the ones shown in the panel.
  4. After a few hours press «Check nameservers»: when the status becomes «DNS active» the switch is complete.

Before changing the nameservers, double-check the MX and TXT records: if they are missing, the domain's email stops arriving.

Cache rules

Changes reach all PoPs in about 20 seconds.

Purging the cache

When you change a file but keep the same name, purge the cache so the PoPs download the new version.

The purge runs on all PoPs within a few seconds; the history is in the right-hand column of the Pull Zone.

Once the purge is done the panel asks your server for the page: if it answers from a cache of its own (Next.js, Varnish, LiteSpeed, a caching plugin or another CDN in front), it tells you. In that case the PoPs reload the same old version until you clear that cache too: purge the site first, then the CDN.

API

  1. Go to «API and keys», give the key a name and press «Create key».
  2. Copy the key right away: for security it is not shown again.
GET  /api/v1/pullzones
POST /api/v1/pullzones   {"name": "client-site", "originUrl": "https://www.site.com", "hostnames": ["cdn.site.com"]}
GET|PATCH|DELETE /api/v1/pullzones/<ID>   PATCH {"status": "PAUSED"}
POST /api/v1/pullzones/<ID>/purge   {"urls": ["https://cdn.mysite.com/photo.jpg"]}
POST /api/v1/pullzones/<ID>/purge   {"all": true}

Header: Authorization: Bearer pcdn_…

If a key ends up in the wrong hands, press «Revoke»: it stops working immediately.

Credit and billing

Redirecting a domain

For a domain that should only lead to another site (an old name, a typo, a defensive brand registration) you don't need a server: the Pull Zone answers with a permanent 301 redirect, with automatic HTTPS.

Performance: with and without the CDN

In Performance choose a Pull Zone and press «Run benchmark». In about a minute 1PrimeCDN downloads the site's pages and files three times from your server (without the CDN) and three times from the CDN, from the panel and from every PoP.

Seeing your visitors' real IP

With the CDN, your server receives requests from the 1PrimeCDN nodes: without a setting, statistics and logs show the node's IP and city (e.g. Falkenstein) instead of the visitor's. The real IP arrives in two headers: X-Forwarded-For and X-PrimeCDN-Client-IP (the IP only, like Cloudflare's CF-Connecting-IP). Your server should trust these headers only when the request comes from a 1PrimeCDN node.

Edge Storage: we keep the files

If you have no server to pull files from — or would rather not use it for images, PDFs, fonts and video — create a storage zone: you upload the files here and the nodes serve them. You choose it when creating the Pull Zone, with «We keep the files».

  1. Edge Storage → New storage zone (or Pull Zone → Add, picking «We keep the files»), then name the zone. The Edge Storage page sums up your storage zones, files and space used.
  2. In the «Files» tab upload whatever you want, in folders if you like.
  3. Every file is immediately reachable at https://zone-name.1primecdn.com/path/to/file.jpg, and from then on the nodes serve it.

From a shell or a program you use your API key (Settings → API keys):

# upload a file
curl -X PUT -H "Authorization: Bearer YOUR_KEY" \
     -H "Content-Type: image/jpeg" \
     --data-binary @photo.jpg \
     https://pannello.1primecdn.com/api/v1/storage/ZONE_ID/images/photo.jpg

# list files and space used
curl -H "Authorization: Bearer YOUR_KEY" \
     https://pannello.1primecdn.com/api/v1/storage/ZONE_ID

# delete
curl -X DELETE -H "Authorization: Bearer YOUR_KEY" \
     https://pannello.1primecdn.com/api/v1/storage/ZONE_ID/images/photo.jpg

Storage files live in the European Union and are part of our nightly backup, with a copy on a second server. The nodes keep a cached copy, as they do for any other site.

Path rules

By default the cache settings apply to the whole site. In Pull Zone → Path rules you can say that one part behaves differently: /api/ never cached, /static/ for a year.

Access log

In Pull Zone → Access log you switch on the collection of rows: one for every request served by the nodes, with date and time, the visitor's IP address, the address requested, the outcome, bytes, whether it came from cache, the node that answered, the country, the referrer and the browser.

# the days available
curl -H "Authorization: Bearer YOUR_KEY" \
     https://pannello.1primecdn.com/api/v1/logs/ZONE_ID

# a whole day
curl -H "Authorization: Bearer YOUR_KEY" \
     "https://pannello.1primecdn.com/api/v1/logs/ZONE_ID?day=2026-10-16" | zcat

It is useful to you as well: this is the same data we measure your site's availability with, for the SLA. If a figure does not add up, you have it in front of you.

The nodes and the global network

Your site is served by the European nodes: they come with every plan and there is nothing to switch on. A visitor from Italy, France or Poland lands on one of them.

The nodes outside Europe are the «Global network» add-on (Billing, €24.90 a month). With it on, someone visiting your site from Asia is served from the Mumbai node, someone visiting from North America from the Beauharnois node and someone visiting from Oceania from the Sydney node, instead of from Europe: from Asia that is about 130 milliseconds less travel per round trip, and a page makes many of them. Without it your sites stay on the European nodes and nobody notices a thing.

The node is chosen in DNS, from the continent the request comes from: there is nothing to configure in your site.

Security (1PrimeCDN Shield)

1PrimeCDN Shield protects your Pull Zones automatically. On every node it checks the traffic every 10 seconds and gives each IP a score: anyone making too many requests, bypassing the cache with ever-changing addresses or looking like an automated program is first sent a challenge and, if it keeps going, blocked for a few minutes.

Protection against the largest network attacks (the ones that clog the line) is handled by the data center infrastructure, OVH and Hetzner; Shield takes care of web traffic.

Password and account

Statistics and network

A hit ratio below 85% usually means files with a cache time that is too short or varying query strings: Prime AI flags this on the dashboard.