How do I disable the use of the Cloudflare CDN? I want everything to be loaded locally to protect the privacy of my users.

Comments

Liam Morland created an issue. See original summary.

Jeff Burnz’s picture

Move all the library files to your server, then implement hook_library_info_alter() in your theme.

It's something I've thought about doing in the theme itself, i.e. provide a setting to make this a one click operation, e.g. site developer may wish to use another CDN or locally host files, e.g. https://www.jsdelivr.com/ (which I would use but they don't have all the plugins I need).

I don't see a privacy issue with Cloudflare. I've not read any substantive argument for that being a thing.

Liam Morland’s picture

Category: Support request » Feature request

Thanks. I'll make this a feature request to automate as you suggest.

From a privacy standpoint, Cloudflare can see who is visiting the site by looking at the referrer headers on requests that it receives.

Jeff Burnz’s picture

I'll have a think about it, I'm cagey about very developer centric features. The UI is packed already and pretty overwhelming and to be really honest it's a feature almost no one will use. I do think it's a nice-to-have feature, but also a fair amount of work.