Home › Docs › CDPCDN – Features

Docs

CDPCDN – Features

This page lists every function of CDPCDN in the current version (application 0.7.0) and, at the end, the functions that are not supported.

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).

Zones

  • Project zone: created automatically with every new project; zone name = bucket name. It can also be created with Enable CDN for this project on the page Delivery.
  • Origin-pull zone: fetches files from an external website on first request; own zone name (3–63 characters), origin address, list of allowed file types.
  • Per-zone settings: widths, format, quality, cache time (60 seconds to 1 year), zone on/off.
  • Zone page: address scheme with examples, Convert URL, Scan page (origin zones), list of files with CDN addresses and srcset (project zones), last 30 delivered files and a build counter.

Delivery

  • Files that already exist in the delivery folder are served by the web server directly; missing files are built once and handed over internally.
  • Plain addresses, image size addresses and versioned addresses with an 8-character version code.
  • Plain delivery files of a key are removed automatically on a new upload, copy, rename or delete.
  • Background job after each image upload (CDPDrive or S3): the original and all sizes are prepared in advance.
  • Headers: correct content type for more than 30 file types (images, PDF, video, audio, CSS, JavaScript, fonts, JSON, XML, web manifests, WebAssembly and others), Access-Control-Allow-Origin: *, X-Content-Type-Options: nosniff, no cookies; unknown types as application/octet-stream.
  • HTML files of project zones are sent with Content-Disposition: attachment.
  • SVG files are sanitised when built and delivered with a sandbox policy.

Image sizes

PropertyValue
Source formatsJPG, JPEG, PNG, WebP, GIF, AVIF, BMP
Output formatsWebP (default), AVIF (if the server supports it), JPG, PNG
Widthsdefault 480/960/1440, up to 8 between 16 and 8192 px
Quality30–100, default 82
Enlargingnever – narrower originals keep their width
ProcessingEXIF orientation, metadata removed, transparency kept
Maximum source size for scaling50 megapixels; above that the original is delivered
Failure behaviourif a size cannot be built, the original is delivered and the case is logged

Origin pull

  • Single fetch per file, up to 200 MB, 60 seconds, up to 3 redirects; only HTTP 200 with content is accepted.
  • Responses with an HTML content type are rejected; image files must be valid images.
  • Image sizes are built from the fetched original.
  • Default allowed types: jpg, jpeg, png, webp, gif, svg, pdf, css, js, woff2, woff, ttf, mp4, ico.

Management and integration

  • Button Clear delivery files per zone (background job).
  • Own domain per project zone (alias host) in the project settings under Advanced.
  • Dialog Use this file / Use this folder in the file browser with CDN, size, versioned and srcset addresses.
  • JSON API for signed-in users and media picker with CDN addresses.
  • CDPCMS module CDPDrive: media picker Button in the editor, cdpdrive_url(), cdpdrive_srcset(), php artisan cdpdrive:push.
  • nginx snippet for delivery under a website's own domain on the same server (shared cache 2 GB, 30 days, header X-CDP-Cache).
  • Module switch module_cdn; audit log entries for zone creation, changes, scans and clearing.
  • Rate limit for builds: 30 requests per second per IP address, burst 60.

Supported and not supported

FunctionStatus
Public delivery over HTTPSsupported
Responsive image sizes with srcsetsupported
Cache-busting with version codesupported
Origin pull from an external websitesupported
Clearing all delivery files of a zonesupported (web interface)
Own domain per zonesupported (DNS, web server entry and certificate set up separately)
Signed or token-protected CDN addressesnot supported
Manual clearing of single files, clearing via APInot supported
Image cropping, free widths, filters, quality per requestnot supported
Network of distributed edge locationsnot supported – delivery runs on the installation's server
Traffic statistics or geo rulesnot supported (only a build counter)
Rendering HTML pages from project zonesnot supported (download only)