CDPCDN answers errors with a short plain-text message and Cache-Control: no-store, so a corrected situation is visible immediately.
The table below gives a quick overview;
the sections explain causes and fixes.
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).
| Response | Typical cause |
|---|---|
| 503 "CDN module is switched off or not licensed" | module switch off or licence without CDN |
| 404 "unknown zone" | wrong zone name, zone switched off, path without file |
| 404 "not found" | file missing, width not configured, CDN delivery of the project off |
| 429 | too many requests that need a build |
| Old content | browser cache of the plain address (1 day) |
HTTP 503
The CDN host answers 503 if the setting module_cdn is off (Settings → Modules) or the licence does not contain the CDN product.
Switch the module on or install a licence that includes CDN.
Data is never lost while the module is off.
The start page https://<CDN_HOST>/ shows the same status.
HTTP 404
"unknown zone"
- The first path segment must be the zone name:
https://<CDN_HOST>/<ZONE>/…. Check the spelling on the page Delivery. - The zone is switched off (Zone on unticked). Tick it and save.
- The address ends after the zone name, e.g.
https://<CDN_HOST>/<ZONE>/– a file path is required.
"not found"
- The file does not exist under this path, is in the trash or the project was deleted. Compare with the address from the Button Use.
- CDN delivery of the project is off (project settings → CDN delivery).
- A size was requested whose width is not configured in the zone, e.g.
-800.webpwhen only 480/960/1440 are set. - A versioned address of an older file version was used: after a new upload the code belongs to the old version, and such an address only keeps working while its file is still in the delivery folder. Take the current address from the dialog "Use this file".
- Origin zone: the file type is not in the allowed types, the origin answered with a status other than 200, an empty body or an HTML page, the image was not a valid image, or the file was larger than 200 MB or took longer than 60 seconds. Check the address on the origin website and the list of allowed types.
- CDPCMS helpers:
cdpdrive_url()builds a versioned address from the map thatcdpdrive:pushwrites. If such an address answers 404, use the plain address shown in the CDPDrive file browser and runphp artisan cdpdrive:pushagain after changes.
HTTP 429
Requests that make the server build a file are limited to 30 per second per IP address with a burst of 60. Files that already exist in the delivery folder are not limited.
After a bulk upload, wait until the background jobs have prepared the sizes, or spread a warm-up over time.
Outdated content
- Plain addresses are cached by browsers for one day. Reload without cache or use the versioned address.
- Origin zones fetch a file only once. After a change on the origin website, click Clear delivery files.
- After changing widths, format or quality, also clear the delivery files so that old sizes are rebuilt.
A size shows the original
If a size cannot be built, CDPCDN delivers the original instead of an error and writes a log entry.
Causes: the source has more than 50 megapixels, it is not a raster image, the server's image library does not support AVIF, or the image is narrower than the width (then it keeps its width, which is intended).
Own domain does not work
- The DNS records (A/AAAA) of the host must point to your server.
- A web server entry that passes the host to the CDN delivery and a valid TLS certificate are required; they are not created automatically.
- The host may belong to one zone only; under the own domain the path starts without the zone name.
Scan page or SVG behaves unexpectedly
Scan page only accepts pages on the origin website of the zone and allows 10 scans per minute.
SVG files lose scripts, event handlers and external references by design and run in a sandbox;
interactive SVG cannot be delivered through CDPCDN.