Home › Docs › CDPCDN – FAQ

Docs

CDPCDN – FAQ

Short answers to the questions that come up most often when working with CDPCDN.

Note on the examples: <CDN_HOST>, <DRIVE_HOST> and <STORAGE_HOST> stand for the host names of your own installation, e.g. cdn.example.com, drive.example.com and storage.example.com;
<ZONE> is the zone name (normally the project or bucket name).

Basics

Do I need CDPStorage to use CDPCDN?

For project zones, yes: their files come from the project storage, which is uploaded through CDPDrive or the S3 API of CDPStorage.
Origin-pull zones fetch their files from an external website and work without the Storage module.
Zones are managed in the web interface on the Drive host.

Is CDPCDN a worldwide network of edge servers?

No. Delivery runs on the server of your installation.
Speed comes from serving prepared files directly through the web server, from long browser cache times and from smaller image sizes.

Is there a subscription?

No. The application is licensed once per installation;
the licence names the products (storage, drive, cdn).
A module without licence answers with HTTP 503.

Addresses and caching

Are CDN addresses public?

Yes.
CDN addresses need no sign-in and no signature.
Put files that must stay private into a project with CDN delivery switched off and share them with a password-protected share link.

How do I replace a file?

Upload the new file under the same name.
The plain address delivers the new content immediately on the server;
browsers may keep the old copy for up to one day.
If that is too long, use the versioned address and update the reference on your page.

What is the difference between the plain and the versioned address?

The plain address …/<folder>/<file> always shows the current version and is cached for one day.
The versioned address …/<folder>/<version>/<file> contains an 8-character code that changes with every upload;
it is cached for the zone cache time (default one year) and marked immutable.

How do I clear the cache?

On the page Delivery, click Clear delivery files in the zone.
All prepared files are removed and rebuilt on the next request.
Copies that browsers already hold are not affected.

Images and file types

Which image sizes and formats are available?

By default 480, 960 and 1440 pixels wide as WebP with quality 82. Per zone you can set up to 8 widths (16–8192 px) and choose WebP, AVIF, JPG or PNG.
Only these configured widths can be requested.

Which file types can CDPCDN deliver?

Any file of a project zone.
More than 30 types get their exact content type (images, PDF, video, audio, CSS, JavaScript, fonts, JSON, XML and others);
other files are sent as application/octet-stream.
Origin-pull zones deliver only the allowed file types of the zone.

Why does an HTML file download instead of opening?

HTML files from project zones are deliberately offered as a download so that no pages run under the CDN host.
SVG files are cleaned and delivered with a sandbox policy for the same reason.

Domains and integration

Can I use my own domain?

Yes, per project zone under project settings → Advanced → Own domain.
The application recognises the host;
DNS, a web server entry and a TLS certificate for it must be set up separately.

How do I use CDPCDN in CDPCMS?

Through the CDPCMS module CDPDrive: enter the connection, then use the media picker Button in the editor or the template helpers cdpdrive_url() and cdpdrive_srcset().
A separate CDPCMS module for CDPCDN does not exist;
a module for CDP is in preparation.