• Resolved davemktg86

    (@davemktg86)


    hi,

    i’m using 1.3.5 vesrion and I don’t know why but it seems me that cache exclusion has stopped working. I’m using this regex to exclude a specific cookie(stm_gdpr_cookie):

    /^(wp-postpass|wordpress_logged_in|comment_author)_|stm_gdpr_cookie/

    I need this exclusion to exclude cookie banner from cache, because if it is cached it appears on every site page also after page reload.

    can you help me?

    thanks in advance
    regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    Does this still occur when using the latest version?

    Thread Starter davemktg86

    (@davemktg86)

    hi,
    I updated plugin to last version(as wp, theme and all other plugins) but yes, it seems it doesn’t work, because cookie banner appears also after page reload. I checked cookies, and stm_gdpr_cookie is relased, so banner should be not showed(as theme support said), but it seems it is cached.

    Anonymous User 16850768

    (@anonymized-16850768)

    It does appear we’ve helped you with this topic more than once:

    Can you please provide the exact Set-Cookie response header that is being set and not causing the cache to be bypassed? Alternatively, please provide a direct URL to the page that you’re referring to.

    Thread Starter davemktg86

    (@davemktg86)

    hi,
    yes, you helped me and your solution worked properly. Thanks. But now it doesn’t work. I can’t find the set-cookie response header. It seems it there isn’t. Is there a private way to send you site URL?

    thanks

    Thread Starter davemktg86

    (@davemktg86)

    hi,

    It seems that I managed to fix the issue by changing the regex from

    /^(wp-postpass|wordpress_logged_in|comment_author)_|stm_gdpr_cookie/

    to

    /^(wp-postpass|wordpress_logged_in|comment_author|stm_gdpr_cookie)_?/

    now cookies banner doesn’t reappear. can it be the issue was only this?

    thanks

    Thread Starter davemktg86

    (@davemktg86)

    I answer the last question myself: no. In home page the cookie banner reappear. but only in home page. Now I excluded home from cache via page id and it works. But i know that this isn’t a good solution for site speed

    Anonymous User 16850768

    (@anonymized-16850768)

    You’re right, the following would be correct to have a cookie matching stm_gdpr_cookie bypass the cache:

    /^(wp-postpass|wordpress_logged_in|comment_author|stm_gdpr_cookie)_?/

    However, when checking your website I see that this will not solve the issue that you’re currently experiencing. The cookie is not set until after the notice has been dismissed. This means the page will be cached beforehand and then the cached page will not be delivered when the notice has been dismissed and the cookie has been set (meaning the notice will always be cached).

    There are two solutions that I can think of that could resolve this. The first would be setting a cookie when the notice is shown and bypassing the cache when that cookie is set. If you require your page not to be cached when the notice is shown this would be a good solution. If you want your page to be cached while still showing the notice I would recommend using a JavaScript solution. Does the plugin offer the ability to hide the notice with JavaScript so it can still function on cached pages?

    Thread Starter davemktg86

    (@davemktg86)

    hi,
    thank you very much!
    I don’t know if plugin has this possibility. And I don’t know how I can set a new cookie that works as you told. The plugin is GDPR Compliance & Cookie Consent. Now I’ll contact gdpr plugin support to ask it them. When I asked them to solve this issue some months ago, they said to exclude the entire plugin directly, but you told me that cache enabler plugin haven’t this possibility.

    thanks again

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cokkies exclusion doesn’t work’ is closed to new replies.