How to disable Speed Brain?
I have Speed Brain disabled for my Cloudflare Pages website in the dashboard's Speed -> Optimization -> Content Optimization setting.
Yet I still see requests made to
/cdn-cgi/speculation
with every pageview. And the speculation-rules
header set on HTTP requests.3 Replies
Have you tried clearing the cache for your Custom Domain on your Pages site, just in case it's cached?
Otherwise, what do you see on the
/cdn-cgi/speculation
endpoint? Is it a blank object {}
?Thanks for the reply! 👍
Doing 'Purge Everything' has no effect, unfortunately.
Indeed, the
speculation
endpoint returns an empty object ({}
). Its Content-Length is 2
and the Content-Type application/speculationrules+json
.That's all disabling does, it just returns an empty object which in effect disables speculation
If you wanted to go further then that would need a transform response header rule to pop the header off