• Hi, I cannot get the cookie exclusion to consistently work… Our website sets a cookie when a user is logged into Salesforce, but it still shows cached pages even with the cookie.

    The cookie name is “sfUser”.

    The Cache Exclusion cookie option is set to:
    /^(sfUser|wp-postpass|wordpress_logged_in|comment_author)_?/

    We also have the Apache advanced cache setup, and have modified it to:

    
    RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_
    RewriteCond %{HTTP_COOKIE} !(sfUser)
    

    The pages load with x-cache-handler: wp so the Apache configuration is working, but not sure why the option is not.

    Edit: we have temporarily disabled the plugin to allow our users to login correctly.

    Thank you.

    • This topic was modified 4 years, 7 months ago by Corey Worrell.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Corey Worrell

    (@coreyw)

    I misspoke about Apache config working. It does work sometimes, but sometimes it falls back to PHP (thus the x-cache-handler: wp. When that header appears, it also returns a 304. A 200 is returned when Apache handles it first. Not sure if this has anything to do with it. But basically if I am logged into Salesforce and I navigate to a page that has not been cached, I get the correct state of website. But if I navigate to page already in cache, I get the cached version still.

    Anonymous User 16850768

    (@anonymized-16850768)

    To troubleshoot this further, can you please provide the Set-Cookie response header and the Cookie request header when this issue occurs?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cookie Exclusion Not Working’ is closed to new replies.