Is it possible to bypass caching on a specific header element for logged in users?

For Workers & Pages, what is the name of the domain?

dev-precision.com

What is the issue or error you’re encountering

We would like to disable or bypass cache a specific part of our header that includes the Username of the visitor. We don’t want users who are visiting as guests to see the username of someone who was logged in on that page previously. We are currently using Wordpress.

What steps have you taken to resolve the issue?

This issue started happening when we updated the page header to include the customer’s username in the header.

Right now, we’ve created a rule to bypass cache for logged in users so that cloudflare does not cache any logged in user pages - we would like to still be able to cache for logged in users, but not specific elements on the page (such as their username displaying).

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.