FlowConsent
ServicesBlogExtensionSolutionsPricingTry FlowConsent
FlowConsent

FlowConsent is a GDPR-compliant cookie consent management platform.

Product

  • Services
  • Extension
  • Extension support
  • Solutions
  • Pricing
  • FlowConsent App

Legal

  • Privacy Policy
  • Terms of Service
  • Legal notice

© 2026 FlowConsent by BeBranded. All rights reserved.

FrancaisDeutschEspanol

Does your website use third-party services? Get GDPR compliant in minutes.

Try FlowConsent
  1. Home
  2. Services
  3. CDN
  4. Varnish

Varnish

OtherWebsite

Related services

5centsCDN

5centsCDN is a web technology service that provides essential functionality for websites and digital platforms. It delivers core capabilities that support site operations, content delivery, and user experience optimization. 5centsCDN integrates seamlessly with modern web architectures, ensuring reliable performance and compatibility across browsers and devices. Trusted by businesses worldwide, 5centsCDN helps organizations maintain robust websites that meet user expectations and technical requirements.

Other
A

Acquia Cloud Platform CDN

Acquia Cloud Platform CDN is a content delivery network (CDN) that accelerates website performance by distributing content across a global network of edge servers. It reduces latency, improves page load times, and handles traffic spikes by serving cached content from the nearest location. Acquia Cloud Platform CDN supports static and dynamic content acceleration, DDoS protection, and SSL/TLS encryption. With real-time analytics and purge capabilities, Acquia Cloud Platform CDN ensures fast, reliable delivery.

Other

Airee

Airee is a foundational web service that powers critical website functions and digital experiences. It provides reliable infrastructure, seamless integration capabilities, and consistent performance across all devices and browsers. Airee supports modern development practices and scales with growing business needs. With a focus on stability and compatibility, Airee ensures your website delivers a smooth, uninterrupted experience to every visitor and search engine crawler.

Other
A

Akamai

Akamai is a versatile web technology that supports digital platforms with specialized functionality and enhanced capabilities. It provides robust tools and services that integrate with modern websites and applications seamlessly. Akamai is designed to improve operational efficiency, user experience, and digital performance. Trusted by developers and businesses alike, Akamai offers reliable solutions that scale with organizational needs and evolving web standards.

Other
A

Akamai Connected Cloud

Akamai Connected Cloud is a web hosting and cloud infrastructure provider delivering reliable, scalable hosting solutions for websites and applications of all sizes. It offers shared, VPS, and dedicated server options with SSD storage, global CDN, and automated backups. Akamai Connected Cloud provides one-click deployment, managed databases, and 24/7 monitoring. With high uptime guarantees and developer-friendly tools, Akamai Connected Cloud ensures optimal performance at scale.

Other
A

Akamai mPulse

Akamai mPulse is a digital marketing technology that helps businesses reach, engage, and convert their target audience online. It provides advanced targeting, campaign management, and performance analytics capabilities. Akamai mPulse enables marketers to deliver personalized experiences across channels, optimize campaign ROI, and gain actionable insights into customer behavior. With automation features and data-driven optimization, Akamai mPulse empowers marketing teams to achieve measurable growth.

Other
Get compliant — Try FlowConsent free

Free plan · 10-min setup

What does Varnish do?

Varnish is an open source HTTP accelerator and reverse proxy cache originally developed by Poul Henning Kamp for the Norwegian news site VG and now maintained by Varnish Cache project and Varnish Software AS. It sits between the client and the origin server, caches responses according to VCL rules, and serves cached content without hitting the backend. From a privacy perspective Varnish is server side software: no client side cookies, but access logs that contain IP addresses and request metadata.

What Varnish is

Varnish is a high performance HTTP accelerator and reverse proxy cache. It was originally written in 2006 by Poul Henning Kamp for the Norwegian news site VG to handle large traffic spikes, and is now maintained by the open source Varnish Cache project and by the commercial company Varnish Software AS (Norway, Sweden, Germany). Varnish runs in front of one or more origin servers, caches HTTP responses according to a configuration language called VCL, and serves cached responses directly to clients, dramatically reducing backend load and latency. It is widely deployed by publishers, e commerce platforms, video streaming services and SaaS APIs.

What data Varnish generates

Varnish does not set or read client side cookies of its own. It can pass cookies through from the client to the origin server (or strip them at the VCL level), but those cookies belong to the application backends, not to Varnish. What Varnish does generate is detailed transaction logs through varnishlog (full request/response tracing) and varnishncsa (Combined Log Format style access log), which contain the client IP, timestamp, request method, URL, status, response time and headers. These logs are personal data under the GDPR. Varnish also stores response bodies in shared memory while they are cached, which can briefly contain personal data from API responses or HTML.

GDPR and ePrivacy implications

Because Varnish does not store information on or retrieve information from the visitor''s terminal equipment, ePrivacy Directive Art. 5(3) (the cookie consent rule) does not apply to Varnish itself. The cache and access logs are governed by the GDPR and rest on legitimate interest under Art. 6(1)(f): caching is a normal operational activity that the visitor reasonably expects of a website, and logs are needed for cache tuning, security and stability. Retention should be short by default, since cache logs are not typically used for long term forensic investigation.

Get GDPR compliant in 10 minutes

Free plan available · No credit card required

Try FlowConsent free

Privacy positive VCL patterns

Varnish ships with a default VCL that strips cookies from cacheable GET requests to maximise the cache hit ratio. This is a privacy positive default because it means tracking cookies do not reach cached content paths. Operators can also configure Varnish to anonymise IP addresses in varnishncsa logs by truncating the last octet, or to use the standard $remote_addr through a Combined Log Format with custom anonymisation. Cache key construction can be tuned to avoid including session identifiers, which keeps caches efficient and reduces the risk of session data being inadvertently cached.

Data transfers and hosting

Varnish Cache as open source software does not transfer data anywhere by itself. Where the operator hosts the Varnish server determines the applicable transfer regime. Varnish Software AS, the commercial entity, is headquartered in Norway (recognised as adequate under GDPR) with offices in Sweden and Germany; if the operator purchases Varnish Enterprise or the Controlled Edge SaaS, the support relationship is governed by a Norwegian contract with EU/EEA data residency by default.

Practical compliance steps

Document Varnish in the record of processing as an operational caching layer under legitimate interest. Set varnishncsa retention to 7 to 30 days, log rotation through logrotate, and store logs on EU infrastructure. Configure VCL to strip tracking cookies from cacheable paths, to anonymise IPs where the use case allows, and to omit query strings from logs on routes that carry tokens. If Varnish Enterprise or Controlled Edge is purchased, sign the Varnish Software DPA. Document Varnish on the cookie policy? Generally no, because Varnish does not set cookies, but the operator may want to mention the caching layer in the technology section of the privacy notice for transparency.

GDPR consent category

Other

Websites using Varnish must obtain user consent under GDPR regulations.

Legal basisLegitimate interest (GDPR Art. 6(1)(f)) for server access logs and cache operations, justified by performance, security and operational stability. ePrivacy Directive Art. 5(3) does not apply because Varnish does not read or write information on the client device.
Risk levellow
Applicable regulationsGDPR, ePrivacy Directive (only for cookies that the operator chooses to set or pass through via VCL, not Varnish itself), German TTDSG, French CNIL guidance on server logs

DPIA considerations

Varnish does not require a DPIA on its own because it is server side caching software with no client tracking. Its log infrastructure (varnishlog, varnishncsa) writes access entries containing IP addresses, request URLs and response codes, which qualify as personal data under the GDPR. DPIA considerations: (1) cache logs typically have a shorter retention horizon than full application logs since they are used for cache tuning rather than long term forensics, 7 to 30 days is typical; (2) request URLs may carry tokens or personal data in query strings, which must be considered when sizing retention and access control; (3) Varnish can be configured to strip cookies on the request path (to maximise cache hit ratio) and on the response path, which is a privacy positive default; (4) Varnish Software AS as the commercial entity is EU based (Norway HQ), which limits Schrems II exposure for enterprise customers; (5) the cache itself stores response bodies in shared memory, which can briefly contain personal data from API responses, this is normal and falls under operational legitimate interest.

Sample consent text

We use Varnish Cache as an HTTP accelerator and reverse proxy on our infrastructure. Varnish does not set cookies on your device. Like any HTTP intermediary it writes access logs containing your IP address, the page you requested, headers and the response code. These logs are used for performance tuning, security investigation and operational stability under our legitimate interest. Logs are retained for [XX] days and then anonymised or deleted.

Technical details

Tracking methodServer side HTTP accelerator and reverse proxy cache. Varnish sits between the client and the origin server, caches HTTP responses according to its VCL (Varnish Configuration Language) rules and serves cached content directly without hitting the backend. It does not set any client side cookie or pixel of its own. Like any HTTP intermediary it generates request logs (varnishlog, varnishncsa) containing IP addresses, request URLs and headers.
Server locationOperator controlled. Varnish is open source software (Varnish Cache) that runs wherever the operator hosts it. Varnish Software AS (Norway, Sweden, Germany) offers Varnish Enterprise and the Varnish Controlled Edge SaaS, with EU data residency available.
Cookieless tracking availableYes

This service may collect user data. Ensure GDPR compliance with FlowConsent.

Get started freeScan your site

Frequently asked questions

Does Varnish set any cookies?

No. Varnish does not set or read cookies on the visitor's device. It can pass through or strip cookies in the request and response path via VCL, but those cookies belong to the application backends behind Varnish.

Is consent required for Varnish?

No. Because Varnish does not store or retrieve information on the visitor's terminal, the ePrivacy Directive cookie consent rule does not apply to Varnish itself. Cache and access logs are governed by the GDPR and rest on legitimate interest.

What is the legal basis for Varnish processing?

Legitimate interest under GDPR Art. 6(1)(f), justified by caching for performance, security and stability, and by access log retention for cache tuning and operations.

Does Varnish transfer data to the United States?

Varnish Cache as open source software does not transfer data. The hosting choice determines transfer risk. Varnish Software AS, the commercial entity, is headquartered in Norway (recognised as adequate under GDPR) with offices in Sweden and Germany.

Do I need a DPIA for Varnish?

A DPIA is not required for Varnish itself. It may be needed for the broader caching and logging architecture if cache logs are processed for advanced security analytics or shipped to non EU systems.

How do I configure Varnish to be privacy friendly?

Keep the default VCL behaviour of stripping cookies on cacheable GET paths. Configure varnishncsa with a custom log format that anonymises IPs and omits query strings on token bearing routes. Rotate logs through logrotate with a short retention (7 to 30 days). Avoid including session identifiers in the cache key.

What alternatives to Varnish exist?

Other HTTP caching layers and reverse proxies include Nginx (with proxy_cache), Apache (mod_cache), Squid, Traefik, HAProxy and Caddy. Cloud CDNs (Cloudflare, Fastly, Akamai, Bunny.net, EdgeOne) provide globally distributed caching with their own privacy and data residency considerations.

How should I update my cookie or privacy policy?

Varnish does not belong on the cookie banner because it does not set cookies. In the privacy policy, you may mention that the site uses an HTTP cache and reverse proxy for performance and stability, the legal basis, the data categories, the retention period and the recipients.