Tiered Cache not working due to bot management cookie
We are running into an issue with tiered cache due to the bot management cookie being sent when enabled (
Just a brief topology to help explain:
On our production domain, we have bot management enabled, which causes the responses from
Is there a way to work around this issue? It makes tiered cache unusable for us among other issues.
__cf_bm)Just a brief topology to help explain:
- We have 2 domains:
www.xxx.comandproxy.xxx.com(same domain, just different subdomains) www.xxx.comis where all requests enter from normal users, and where we have our worker runningproxy.xxx.comis where the above worker calls to
pages, resources, etc. (Just a reverse proxy essentially) This is not another worker, it is essentially the origin server.fetch
proxy.xxx.com. Everything works as expected. Our cache is hit, we get Age headers as we expect, etc. No issues.On our production domain, we have bot management enabled, which causes the responses from
proxy.xxx.com to include the __cf_bm cookie, and seems to instruct Cloudflare not to cache the response, because it has a Set-Cookie header, completely defeating the purpose of us enabling tiered cache.Is there a way to work around this issue? It makes tiered cache unusable for us among other issues.