Support » Plugin: Cloudflare » Cached post for logged in user

  • muchmuch11

    (@muchmuch11)


    I want to cache my site’s HTML, not just static, so basically to cache everything, but I don’t want to cache HTML for logged users, so if a users logged in and viewing posts, its HTML is fresh each time and won’t be cached. Is it possible?

    In the past I used CF with cache everything, though I already add exception for admin and preview, but when I visited newly posted article, and later try to open that post as regular visitor, I could see the admin bar because the cache created when I visiting it as logged user.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jwineman

    (@jwineman)

    Hi,

    You might be interested in our Bypass cache by cookie functionality here:
    https://support.cloudflare.com/hc/en-us/articles/236166048

    Thanks,
    John

    muchmuch11

    (@muchmuch11)

    It’s interesting, but it’s only for business plan. Is there something else to work this out?

    Plugin Contributor jwineman

    (@jwineman)

    Unfortunately no. Excluding the admin and preview URL schemes doesn’t change the fact that WordPress will show the admin bar at the top if you’re logged in. The only way Cloudflare supports this functionality is by checking for the cookie.

    Thanks,
    John

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cached post for logged in user’ is closed to new replies.