Setting “Bypass cache for the following cookies” not working as expected
-
I need to exclude logged-out administrators from caching.
Towards that I am setting a cookie when admins log in (admin_device) which persists after they log out.
This cookie has been added to “Bypass cache for the following cookies” under Cloudflare Workers.
After I purge cache this is working as expected. But after regular users prime the cache eventually this stops working and users with the “admin_device” cookie start getting cached html.
At that time I see these header:
x-wp-cf-super-cache-cookies-bypass: admin_device
x-wp-cf-super-cache-worker-status: hit
cf-cache-status: HIT
When I check the cookie is present and not expired.
Any ideas what I might be missing?The page I need help with: [log in to see the link]
- The topic ‘Setting “Bypass cache for the following cookies” not working as expected’ is closed to new replies.