The docs say:
" * Cloudflare does not cache the resource if the
Cache-Control header is set to
no-cache , or
max-age=0 or if there is a cookie in the response."
"The Cloudflare CDN does not cache HTML by default. "
what if I have Magento with page rule set up:
There is option “Bypass cache on cookie”. But the CF checks cookie from the request’s (client) side, not from the reponse (origin) side?
Is it possible to bypass the CF cache by sending private_content_version Cookie from the origin server? (I have origin header set to cache-control: no-store, no-cache, must-revalidate, max-age=0 (its default from Magento 2))
Or any other advice how to bypass the cache by the means of the origin server logic?
Do I need to create a custom worker?
Does such page rule overrides “Cloudflare does not cache the resource if … there is a cookie in the response.”? Does it still respect’s origin headers?