French flag Hosted and supported in France A human reply within 12 hours 06 65 13 24 36
← All articles Hosting & performance15 min read

CDN: is it really useful for a site hosted in France?

A CDN brings your files closer to your visitors. For a French company with a French audience, the gain is often modest. Here is how to decide, according to your audience, your media and your dynamic pages.

CDNs are often presented as a universal accelerator. For a site whose server and visitors are both in France, the reality is more nuanced: the network distance is already short, and what slows a page down is often somewhere else. A CDN remains very useful in certain specific cases, though. The question is whether you are in one of them.

A server room crossed by glowing streams of data, with the Eiffel Tower in the background
A CDN shortens the distance for the files it can cache, not for the rest.

What a CDN actually does

A CDN (Content Delivery Network) is a set of relay servers, called points of presence or edgenodes, spread across a great many cities. Your site stays hosted on its usual server, called the origin. The CDN sits between the visitors and that origin: it keeps a copy of the resources it is allowed to cache and delivers them from the nearest relay.

  1. The visitor asks for a resourceThe domain's DNS points them at the nearest CDN relay.
  2. The relay checks its copyIf it holds a valid version (a “hit”), it answers immediately.
  3. Otherwise it asks the originA “miss”: the request travels on to your server in France.
  4. It keeps the answer if it is cacheableAccording to the cache headers and its own rules, for the visitors who follow.

The benefit depends on the hit rate: a resource rarely asked for, or barred from caching, goes back to the origin almost every time.

It is above all static files that gain: images, stylesheets, scripts, fonts, video, documents to download. Some CDNs can also cache whole HTML pages, which calls for precise rules so that one visitor is never served another's personalised page.

Latency: where a page's delay really comes from

La latency is the round trip between the browser and the server. It grows with physical distance and with the number of network intermediaries. Every new connection, every TLS negotiation and every resource requested pays part of that delay. Between a visitor in Lyon and a server in France, that round trip is short. Between a visitor in Montreal or Singapore and the same server, it is markedly longer, and it repeats for every connection.

But distance is only one link in the chain. The time the server takes to generate the page, the weight of the images, third-party scripts and rendering in the browser often weigh more for a nearby audience. That is why the guide on hosting your site in France or abroad stresses where the server sits relative to the audience, and why our network page separates the connection, the server's response and the rendering.

The CDN helps

Distance

Cached files are delivered from a relay close to the visitor.

The CDN helps

Load on the origin

Images and heavy files no longer call on your server at every visit.

The CDN does not help

Generating the pages

A page that is slow for PHP and the database to produce stays slow: see high server response time.

Measure before deciding

The decision rests on measurements, not on a hunch. Three readings are enough to know whether distance really is your problem:

  • Where your visitors are : the breakdown by country in your analytics tool. If the great majority of them are in France, distance counts for little in the equation.
  • The time to first byte (TTFB) of your main pages, in the Network tab of the browser's developer tools. It adds up the connection, the TLS negotiation, any redirect and the time the server takes to generate the page, as web.dev sets out.
  • The weight and the number of resources on those same pages, again in the Network tab: that is what the CDN could deliver from closer by.

If the TTFB is high from France, the delay comes mainly from the server or the application, and a CDN will not fix it. If it is fine in France but markedly longer from the countries where some of your customers are, and the pages contain a lot of static files, the CDN has a real part to play. Take these measurements several times, at different moments, and from testing tools located in the countries concerned: a single reading says very little.

Five situations compared

COMPARING BY AUDIENCE

What a CDN brings according to the site's profile

SituationExpected benefitWhat to watchVerdict
French site, French audienceLittle on latency; relief for the origin if there are many media filesAdded complexity for a gain that is sometimes imperceptibleRarely a priority
French site, European visitorsModerate: distances to neighbouring countries are still shortCheck the measurements from the countries concernedOptional
Worldwide audienceSignificant: every distant connection gains a short round tripDynamic pages are still served from FranceRecommended
Media-rich siteSignificant for the origin: bandwidth and load moved elsewhereOptimise the files' weight firstOften worthwhile
E-commerceUseful for the catalogue and the product imagesBasket, checkout and account excluded from the cache; purges after a price changeCase by case

The first case is the most common among French companies. A tradesperson, a practice or a small firm whose customers are in France, hosted in France, almost always has better levers: lightening the images, putting a page cache in place, reducing third-party scripts, choosing suitable hosting. The CDN does no harm, but it is not the answer to the slowness it is thought to solve.

For a media-heavy site (galleries, video hosted on the site, PDF catalogues), the argument changes: even with a French audience, moving those files off the origin relieves it and absorbs peaks better. Video delivered through a specialist platform is nonetheless often simpler than hosting video files on the site itself.

Dynamic pages, WooCommerce and purging the cache

A shop mixes two kinds of page. Product and category pages are identical for every anonymous visitor and can benefit from a cache. The basket, the checkout, the customer account and any page that depends on a session must, on the contrary, be generated by the origin every time. A badly configured CDN that cached those pages could show one customer's basket to another: the exclusion rules are therefore essential, and have to be tested.

Even well configured, the CDN does not shorten the time those dynamic pages take: the request crosses the relay and then travels on to the origin. To speed them up you have to act on the server and the code, for instance with an object cache when the measurements justify it, and follow the levers in the guide on WooCommerce slow.

Purging, and the risk of an inconsistent cache

When you change an image, a price or a stylesheet, the relays may go on serving the old version until their copy expires. You then have to purge the cache: empty it entirely, or only the URLs concerned. Without a clear procedure you get puzzling situations: one visitor sees the new version, another the old one, and the team cannot work out what is happening. Versioning the CSS and JS files (a number in the URL that changes with every deployment) avoids a good share of these problems.

Cache lifetimes are set by the HTTP headers the origin sends (Cache-Control, with directives such as max-age or s-maxage for shared caches) and by the CDN's rules. A resource that sends private or no-store is not cached by a standards-respecting intermediary.

DNS, security, DDoS and dependency

Turning a CDN on usually goes through DNS: either you delegate the whole domain to the provider, or you point certain subdomains at it. In the first case your email records (MX, SPF, DKIM) and those of your other services move too: they have to be inventoried beforehand, as for a hosting migration.

The CDN presents visitors with its own certificate for your domain, then connects to the origin. That second leg has to be encrypted and verified as well. A “flexible” mode that encrypts only between the visitor and the CDN, then drops to HTTP towards the origin, is a classic source of redirect loops and warnings: the guide on a valid SSL certificate but a site marked not secure covers those cases.

On the security side, a CDN with a proxy hides the origin's address and can absorb part of a denial-of-service attack, when it offers that protection and the origin cannot be reached directly. It is not protection for the application: a vulnerable plugin remains exploitable through the CDN. And the CDN becomes a compulsory stop on the way: if it has an incident, your site can become unreachable even though your server is working perfectly.

THE REAL COST

What switching a CDN on adds

ItemWhat to plan for
SubscriptionLimited free plans, paid plans according to traffic or features
ConfigurationCache rules, exclusions, headers, compression, certificate
Running itPurges, diagnosing inconsistencies, updating the rules
DependencyOne more provider on the path of every visit
DataVisitors' requests pass through a third party: check where it is and on what terms

The situations where a CDN brings little

Little use

A local or national audience

Visitors and server in France: the distance is already short.

Little use

Pages that are slow to generate

The delay is in PHP and the database, before the network comes into it at all.

Little use

A mostly dynamic site

A members' area, a business application: most pages have to go through the origin.

Little use

Pages that are too heavy

Delivering a 4 MB image from closer by is still slower than delivering a properly compressed one.

A CDN brings closer what is already prepared. It does not prepare any faster what is not ready yet.
Free Host by French tool

Do I need a CDN?

Seven questions about your audience and your pages, for a recommendation that is explained rather than just scored.

An indicative recommendation worked out in your browser from your answers. Confirm it with measurements taken from the countries where your visitors are.

Unsure about adding a CDN, or not sure where your slowness comes from?

Have my site analysed

Putting a CDN in place without breaking the site

  1. 01

    Measure beforehand

    Response time, weight and loading of the main pages, from France and from the countries concerned. Without a starting measurement there is no way to tell whether the CDN helped.

  2. 02

    Sort what can be cached

    Static files (images, CSS, JS, fonts) on one side; public pages that could be cached; pages that never should be (admin, basket, account, previews, API).

  3. 03

    Prepare DNS and the certificate

    Inventory the records, check the certificate on the CDN side and on the origin, choose a fully encrypted and verified mode.

  4. 04

    Start with the static files

    Turn the static files on first, watch for a few days, then widen the scope if need be.

  5. 05

    Test the sensitive journeys

    Sign-in, basket, payment, forms, a price change, a purge. Check in a private window and from several devices.

  6. 06

    Measure afterwards and write it down

    Compare with the initial measurements, and record the rules and the purge procedure for the team.

The mistakes to avoid

Mistake 01

Turning HTML caching on with no exclusions

The risk of serving another visitor's basket or account page is real. Exclusions have to be tested.

Mistake 02

Encrypting only as far as the CDN

A CDN-to-origin leg over HTTP: redirect loops, warnings, and data exposed in between.

Mistake 03

Delegating DNS without an inventory

Email and other services tied to the domain can stop working.

Mistake 04

Forgetting the purge

A change invisible to some visitors costs hours of diagnosis.

Mistake 05

Counting on the CDN for application security

It filters part of the network traffic; it does not fix a vulnerable plugin.

Mistake 06

Judging on a single measurement

The first pass fills the cache. Compare across several measurements and several countries.

At Host by French we do not add a CDN out of reflex: the expected gain, managing the cache, privacy and the new point of dependency are all weighed before switching one on. For most French sites, a server located in France, a well-configured cache and lighter pages already do the essential work. The guide on why hosting influences your SEO is also a reminder that a page that is fast for your real visitors counts for more than a score obtained from another continent.

FREQUENTLY ASKED QUESTIONS

Frequently asked questions about CDNs

Does a CDN speed up a site hosted in France for French visitors?

A little, above all for static files and for the load on the server, but since the distance is already short, the gain you notice is often modest. Lightening the pages and configuring the cache generally have more effect.

Does a CDN improve SEO?

Indirectly, if it genuinely improves the speed your visitors experience. Google does not favour a site because it uses a CDN. For a French audience, a server in France and light pages count for more.

Is a CDN compatible with WooCommerce?

Yes, provided you exclude the basket, the checkout, the account and any session-related page from the cache, and purge after a change of price or stock. Product pages and images benefit; dynamic pages do not.

Does a CDN protect against DDoS attacks?

Some CDNs with a proxy absorb part of these attacks, if that protection is part of the plan and the origin's address stays hidden. It does not protect against a flaw in a plugin.

Why do some visitors see an old version of my site?

The CDN's relays serve their copy until it expires. After a change, purging the cache, or versioning the CSS and JS files, makes sure every visitor receives the new version.

Do I need a CDN to host video?

Hosting video files on your own server puts heavy demands on bandwidth. A CDN helps, but a specialist video platform is often simpler and better suited to delivery.

IN SHORT

A CDN is justified by your audience, not by habit.

A worldwide audience, heavy media, traffic peaks: it becomes useful, even necessary. A French audience and a server in France: it is rarely the priority. Measure first, decide afterwards.

Review my site

Summary with an AI

Choose your assistant: the request is prefilled where that is possible, and always copied, ready to paste if need be.

ChatGPTSummarise the article PerplexitySummarise the article ClaudeSummarise the article CopilotSummarise the article MistralSummarise the article GeminiSummarise the article
THEY TRUSTED US

Client references

See all case studies
Montreuil-sur-Mer logo Data Labcenter logo Sofradom logo 70 Football logo Afrique sur 7 logo CyberJay logo Élisa Reddet logo Foire du Trône logo Goodyvest logo Kincy logo Lhotellier logo Audrey Mégelé du Bourg logo MYF logo
Sine Qua Non logo Make It Happen logo Sonance Audition logo ACME logo Beluvia Bar Store logo Desaltera logo Fête des Loges logo GD Menuiseries logo 3G Immo logo Lavish logo Maison du Feu logo Mieux Fiscal logo MYF Tea logo
Go deeper

Articles to go further on the CDN site hosted in France guide.

See all articles
What they say about working with us

Google reviews about the support we provide for the Is a cdn useful for a site hosted in france. page

Google logo 4,8/5 243 verifiable Google reviews Read the reviews
★★★★★
“A WordPress pro. His skills, his grasp of what we needed and his clear explanations made the whole project run smoothly.”
Nicolas Le Couteur Review published on Google
★★★★★
“Always available to answer questions, very professional. Every technical problem we ran into was resolved.”
Cuong Doan Review published on Google
★★★★★
“A professional who listens to his clients. Thank you for the commitment and the time spent on our project.”
Sakina Sedkaoui Review published on Google
★★★★★
“Someone you can trust, who understood my needs straight away and put an effective strategy in place.”
Vincent Loustalot Review published on Google
★★★★★
“Very attentive, motivated and able to propose tailored SEO strategies. The quality of the work is remarkable.”
Marine Mongodin Review published on Google
★★★★★
“Quality work, delivered on time. Maxime is responsive, suggests relevant adjustments and delivers careful work.”
Olivier Opron Review published on Google
★★★★★
“Spot on, perfect work, nothing to fault!”
Robin Gomez Review published on Google
★★★★★
“Maxime adapts very quickly, even to the trickiest technical situations. The result is always there.”
Philippe Bertieaux Review published on Google
★★★★★
“Impeccable work from start to finish, highly responsive and flawless quality.”
Alex Houillon Review published on Google
★★★★★
“The site is fast and visually very good. Maxime also helped us build our SEO strategy.”
Lois Guillermond Review published on Google
★★★★★
“An exceptional developer.”
Honoré Comlan Koumondli Review published on Google
★★★★★
“Maxime showed great professionalism and great creativity in helping us build our charity’s website.”
Julien-Benoit Birman Review published on Google
★★★★★
“A solid understanding of search optimisation when building a WordPress site.”
JM Review published on Google
★★★★★
“Maxime is responsive, a good teacher, and anticipates what is needed to get the strategy right.”
Romain Bergé Review published on Google
Your site deserves better

Let’s talk about your hosting

Tell us about your project. You get a clear recommendation, no jargon and no commitment.

Get my recommendation Reply within 12 hours • Migration handled • Free quote Active infrastructure
Google logo 243 Google reviewsVerifiable public reviews
Find my plan