CDN

CDN

The cdmon CDN is a service designed to make your website load faster, be more stable and better prepared to handle visitors from anywhere. When someone visits a website, their browser downloads a series of elements to display the content correctly: images, styles, fonts, JavaScript files and other resources. Normally, all these files are requested directly from the hosting where the website is published.

When you activate the CDN, some of this content is temporarily stored on a network of servers distributed across different locations. This means that when someone visits your website, certain files can be served from a server closer to where they are located, reducing loading times. The CDN also reduces the number of requests that reach your hosting directly, helping to distribute the workload more efficiently and keep the website stable, especially during periods of high traffic.

Activation is carried out directly from the cdmon Control Panel, without requiring technical knowledge, modifying your website's code or performing any additional configuration. Once activated, cdmon automatically applies everything necessary.

What are the benefits of using the CDN?
By activating the CDN on your hosting, you can achieve:
  • Faster loading of images, styles and other files on your website.
  • A better browsing experience, as visitors can access content more quickly.
  • Greater stability when the number of visitors increases or temporary traffic peaks occur.
  • A reduction in the number of requests received directly by your hosting, reducing its workload.
  • Better availability of content stored on the CDN, as it is distributed across different servers.
  • Additional protection against certain distributed denial-of-service attacks, known as DDoS attacks, thanks to Layer 3 and 4 anti-DDoS protection and anomaly detection.

The free service is included with your hosting plan and has a transfer limit determined by the hosting plan you have contracted.

Activating the CDN
1. Access the hosting management
To activate the CDN, first access the cdmon Control Panel. In the "Basic services list", locate the hosting on which you want to activate the service and click Manage.

2. Access the CDN section
Within the hosting management section, go to Server. Then, click CDN to access the service management section.

From this section, you can check whether the CDN is active, review its usage and manage its configuration.

Accessing CDN management

3. Activate the CDN
To start using the service, click the Activate CDN button. Before completing the activation, you will need to read and accept the service's terms of use. The following requirements must be met:
  • The DNS must be managed through cdmon and belong to the same user as the hosting where you want to activate the CDN.
  • The website's DNS records must point to the cdmon server where the website is hosted.
  • The cache must be disabled.

Important: If the domain uses cdmon DNS but the website's records point to an external server, such as Shopify or another provider, the CDN will not work correctly. Before activating the CDN, make sure that the domain uses cdmon DNS and that the website's records point to the cdmon server where the website is hosted.

Subdomains: Activating the CDN also affects the web records of subdomains. When the service is activated, these records may be automatically modified to use the CDN. If you have a subdomain pointing to an external server or another provider, it may stop working while the CDN is active.

Activating the CDN

Once the operation has been confirmed, cdmon will automatically apply the necessary configurations. This process can take up to 15 minutes. Once completed, the service status will appear as Active.

Important: When the CDN is activated, the system creates a copy of the existing DNS records and automatically applies the configuration required for the CDN to work.

If you make changes to the DNS records while the CDN is active and then deactivate it, these changes may be lost. When the CDN is deactivated, the system will restore the copy of the DNS records that existed before the service was activated.

Note: During activation, the website will continue to work, although temporary issues may occasionally occur, such as images taking longer to load, resources not being displayed correctly or temporary errors. These issues will disappear once the service configuration is complete.

Checking transfer usage
In the usage section, you can check the amount of transfer used by the CDN during the current period.

The usage bar shows:

  • The amount of transfer used.
  • The total transfer available.
  • The available limit depends on the hosting plan you have contracted.
  • When usage approaches the limit, notifications will be sent by email.

CDN transfer usage

What happens when the limit is reached?

When 100% of the available transfer is reached, the CDN is temporarily suspended until the start of the next usage period. While the CDN is suspended, the website content is delivered directly from the origin hosting again.

Suspending the CDN does not delete any content or deactivate the hosting. The website will continue to work, although it may temporarily lose the speed, stability and protection improvements provided by the CDN.

When the next period begins, usage will reset and the service may become available again.

Deactivating the CDN
If you no longer want to use the service, go to Server > CDN again and click Deactivate CDN. The system will ask you to confirm the operation. Once deactivation begins, cdmon will automatically remove the service configuration and the DNS records will return to the configuration they had before the CDN was activated.

Important: When the CDN is deactivated, the copy of the DNS records created when the service was activated will be restored. If you have made changes to the DNS records while the CDN was active, these changes will not be preserved.

If you had subdomains or records pointing to external services before activating the CDN, when the service is deactivated the previous configuration will be restored and they will use their original records again.

Note: During this process, the website will continue to work, although images may temporarily fail to load correctly, and occasional errors or unexpected behaviour may occur. The situation will return to normal once deactivation is complete.

Usage graphs
In this section, you can view the activity of your CDN during the current month. The data is displayed as a daily summary so that you can identify trends, compare usage between different dates and detect possible increases in traffic.

CDN usage graphs

Requests per day
This graph shows the total number of requests processed by the CDN each day to deliver your website's content. Whenever a visitor accesses a page, their browser may request different resources, such as images, stylesheets, fonts or JavaScript files. For this reason, a single visit can generate several requests.

This information allows you to identify the days with the most activity and see how your website traffic evolves throughout the month.

Requests per second
Requests per second indicate the average number of requests that the CDN receives and processes every second to serve your website's content.

This information allows you to understand traffic intensity and identify the days on which higher concentrations of requests occurred, for example, due to an increase in visitors or a higher number of resources being loaded.

Bandwidth consumed per day
Bandwidth indicates the amount of data that the CDN transfers when delivering your website's content to visitors.

The graph shows the amount consumed each day and allows you to identify which dates generated the highest transfer. Usage may increase due to a higher number of visitors, the download of larger files or the number of resources included on the website.

Cache ratio

The cache ratio shows how requests received by the CDN have been processed and what percentage of the content could be delivered directly from its cache:

  • Hit: the content was already stored in the cache and the CDN delivered it directly to the visitor.
  • Miss: the content was not available in the cache and the CDN had to request it from the origin hosting before delivering it.
  • Pass: the request bypassed the cache and was sent directly to the origin hosting.

In this graph, you can view the distribution of cache results both by number of requests and by transferred bandwidth. This allows you to see which part of the traffic was handled directly by the CDN and which part required access to the hosting.

A high proportion of Hit requests indicates that a larger amount of content is being delivered directly from the CDN, reducing the number of requests received by the hosting.

Monthly summary
In the monthly summary, you can view the CDN usage history for previous months. For each period, the transferred bandwidth and number of processed requests are displayed. This information allows you to compare activity between different months, detect changes in usage and see how much traffic the CDN has handled during each period.

How does caching work?
The CDN temporarily stores a copy of certain content from your website so that it can be delivered more quickly to subsequent visitors. This process is known as caching. The first time a file is requested, the CDN retrieves it from your hosting and stores a copy on its servers. During subsequent visits, it can deliver that copy directly, avoiding the need to request the file from the hosting again each time.

Static files, such as images, stylesheets, JavaScript files and fonts, can be stored on the CDN for a maximum of 24 hours.

The formats stored include:

  • CSS
  • JavaScript (JS)
  • JPG
  • JPEG
  • PNG
  • GIF
  • SVG
  • ICO
  • EOT
  • TTF
  • WOFF
  • WOFF2

HTML pages can be stored for a maximum of 5 minutes. This shorter period helps improve speed without keeping an outdated version of the page for too long.

Only responses that have been successfully delivered from the hosting are stored. For example, pages that return an error are not cached.

For static files without custom configuration, the visitor's browser may retain them for one hour, while the CDN can keep them for 24 hours. For HTML pages, a cache time of 5 minutes is set in the browser and up to one hour in shared caches.

This means that some changes made to the website may not be displayed immediately to all visitors. For example, if you replace an image while keeping the same filename, the previous version stored in the cache may continue to be displayed for some time. Once the corresponding period has expired, the CDN will request the updated content from the hosting again.

Important considerations
  • The CDN is available for compatible hosting plans.
  • The DNS and hosting must be associated with the same cdmon user.
  • The website's DNS records must point to the cdmon server where the website is hosted.
  • Subdomain records may also be affected when the CDN is activated.
  • It is not possible to use an external CDN simultaneously.
  • The Control Panel's caching tool must not be active.
  • When the CDN is activated, a copy of the existing DNS records is created.
  • If you make changes to the DNS records while the CDN is active, these changes may be lost when the service is deactivated, as the configuration saved before activation will be restored.
  • Activating and deactivating the service may take several minutes to complete.
  • The CDN improves content distribution and delivery, but does not replace website optimisation.
  • Dynamic or private content may continue to be delivered directly from the hosting.
  • If you have another caching tool active, the Control Panel may display additional information before completing the activation.

If you need more information about how the CDN works or have any questions about activating it, you can contact our support team.

    • Related Articles

    • How to set up our domain's DNS with CloudFlare

      Buy domain CloudFlare is a provider that offers CDN (content delivery network) and DNS services. It provides both free and paid plans. Below, we explain how to configure the DNS management of your domain with CloudFlare. 1.- Sign up in CloudFlare ...