Do you need cookie consent for a CDN? Privacy myths, busted
Privacy questions about CDNs attract a lot of confident, wrong answers. Six of the most common, what is actually true, and the one myth that turns out not to be a myth at all.
Almost all confusion about CDNs and privacy comes from collapsing two separate questions into one. "Does this set cookies I need consent for?" and "does this process personal data?" have different answers, sit under different laws, and require different things of you.
Consent for cookies comes from the ePrivacy Directive, which governs storing or reading information on someone's device. Processing personal data comes from GDPR, which governs what you do with the data itself. A thing can require the second without requiring the first — which is exactly the case for a CDN, and is why so many people arrive at the wrong answer confidently.
Practical overview from engineers, not legal advice. The general shape holds; if you are in a regulated sector or facing an actual complaint, get someone qualified.
Myth 1: "Using a CDN means I need a cookie banner"
False. Consent banners exist for storing or reading information on a visitor's device for non-essential purposes — analytics, advertising, profiling. A CDN delivering your own images, stylesheets and pages does not need to store anything on the device to do that job.
The cookies that trigger banners come from your analytics and marketing tools, and they would trigger them whether or not a CDN existed. If the only thing that changed is where your own files are served from, your banner obligations are unchanged.
Needs consent
- Analytics that profile visitors
- Advertising and retargeting pixels
- Embedded third-party trackers and social widgets
- A/B testing tools that persist identifiers
Does not, by itself
- A CDN serving your own content
- Strictly necessary security cookies
- A load-balancing or routing cookie
- Caching, compression and image optimisation
Myth 2: "A CDN tracks my users"
False, for a content CDN. Delivering content requires processing technical data — chiefly the IP address, because you cannot route a response without knowing where to send it — but that is a categorically different activity from building a behavioural profile across sites.
The reasonable question is not whether a CDN sees an IP address, since anything serving you a web page necessarily does. It is what happens to it afterwards: how long logs are retained, whether addresses are truncated or hashed, and whether the provider's business model gives it any reason to be interested in your visitors.
Myth 3: "Security cookies need consent too"
False. Cookies strictly necessary to provide a service the user explicitly requested are exempt from consent. A cookie that remembers a visitor has passed a bot challenge, so they are not challenged repeatedly, falls squarely within that exemption — it exists solely to deliver the page they asked for.
The exemption is narrower than people would like, though. It covers what is strictly necessary, not what is convenient. A security cookie that also carried analytics identifiers would not qualify, and calling something "essential" does not make it so.
Myth 4: "Using a CDN is a GDPR violation"
False as stated. Using a processor is entirely ordinary and explicitly contemplated by GDPR; that is what Article 28 is for. What matters is whether you have the paperwork and whether personal data ends up somewhere it should not.
What you actually need is a data processing agreement with the provider, a mention in your privacy policy, and either a valid transfer mechanism or an arrangement where European traffic does not leave the EEA. That is a checklist, not a prohibition.
Myth 5: "It is fine, we anonymise the IPs"
Careful. Truncating or hashing IP addresses in logs is genuinely worthwhile and reduces your exposure meaningfully — but it does not retroactively make the processing not have happened. The edge server had the full address at the moment it answered the request, because it could not have answered otherwise.
Anonymisation is data minimisation, which is an obligation you have and should meet. It is not an exemption from having a lawful basis and a DPA.
Myth 6: "Serving assets from a third party is legally risky"
This one is not a myth, and it is worth understanding precisely, because it is frequently misapplied.
A German court found in 2022 that a website embedding Google Fonts from Google's servers had unlawfully transmitted visitors' IP addresses, and awarded damages. That ruling caused a wave of sites self-hosting their fonts, and a wave of speculative complaint letters.
The reasoning matters more than the headline. The problem was not that a font was loaded from another server. It was that visitors' IP addresses were being disclosed to a third party in another jurisdiction, with no consent and no necessity, when the site could trivially have served the file itself. The transmission was avoidable and unnecessary — that was the issue.
Which is why the same reasoning does not straightforwardly extend to a CDN you have engaged as your processor under a DPA, serving your own content, from infrastructure within the EEA. The distinction is between disclosing data to an independent third party for their own purposes, and instructing a processor to act on your behalf under contract. Embedding a public asset from someone else's product is the first. Using a CDN is the second.
What you actually need
| For your CDN | For your trackers |
|---|---|
| A data processing agreement | A consent banner |
| A line in your privacy policy naming it | Consent captured before they load |
| Legitimate interest as the basis | Consent as the basis |
| Data residency you have thought about | An equally easy way to decline |
| Short, deliberate log retention | A record of what was consented to |
Frequently asked questions
Do I need cookie consent to use a CDN?
No. A CDN delivering your own content does not require storing or reading information on the visitor's device for non-essential purposes, which is what triggers consent obligations under the ePrivacy Directive. Consent requirements come from analytics, advertising and profiling scripts on your pages, regardless of whether a CDN delivers them.
Does a CDN set cookies?
A content CDN generally does not need to set cookies to deliver content. Some features do — a cookie remembering that a visitor passed a bot challenge, or one pinning a session to a particular server — and these normally fall under the strictly necessary exemption because they exist solely to provide the service the visitor requested. They should still be described in your privacy policy.
Is using a CDN a GDPR violation?
No. Engaging a processor is ordinary and explicitly provided for by Article 28 of GDPR. What is required is a data processing agreement with the provider, a lawful basis — normally legitimate interest for content delivery — transparency in your privacy policy, and either a valid transfer mechanism or an arrangement keeping European traffic within the EEA.
Why did a German court rule against Google Fonts, and does that apply to CDNs?
A court in Munich held in 2022 that embedding Google Fonts from Google's servers unlawfully disclosed visitors' IP addresses to a third party without consent, when the site could have hosted the fonts itself. The reasoning turned on an unnecessary disclosure to an independent third party rather than on remote hosting as such. A CDN engaged as your processor under a DPA, serving your own content, is a materially different arrangement — though keeping the data within the EEA removes the question entirely.
Does anonymising IP addresses remove my GDPR obligations?
No, though it is worth doing. Truncating or hashing addresses in logs reduces retained personal data and satisfies the minimisation principle, but the edge server necessarily processed the full address in order to respond at all. You still need a lawful basis, a processing agreement and transparency; anonymisation reduces exposure rather than eliminating the obligation.
What is the difference between cookie consent and GDPR data processing?
They come from different laws with different triggers. Cookie consent derives from the ePrivacy Directive and concerns storing or reading information on a user's device. GDPR governs the processing of personal data however it is obtained. A CDN typically processes personal data — IP addresses — without storing anything on the device, so it engages GDPR obligations such as a DPA without engaging consent obligations.
Keep the two questions apart and most of the confusion resolves itself. Consent is about what you put on someone's device. GDPR is about what you do with their data. A CDN delivering your own content raises the second and not the first — and the second is answered with a contract and a paragraph, not a pop-up.
See how NordicCDN does this for your site:
Mads has worked in IT — mostly hosting — since he was 16. He took an early stake in a SaaS company and helped grow it through to its acquisition by Visma, has built and run data-center networks, and served as CTO of a Danish data center. He started NordicCDN to make fast, secure infrastructure simple to use.