• Resolved davemktg86

    (@davemktg86)


    Good morning,

    I should exclude the stm_gdpr_cookie cookie from the cache to make the cookie banner work properly. I entered this regexp in the appropriate field:

    / ^ (stm_gdpr_cookie) /

    but I’m not sure it work s properly. Is this regular expression correct?

    Thanks in advance
    Best regards

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

    (@anonymized-16850768)

    Using the Cache Exclusions setting will bypass the entire page from the Cache Enabler cache. It’s not possible to only bypass the banner from the cache. This means if a page has the stm_gdpr_cookie cookie the entire page will not be cached. This won’t be effective caching if all of your pages contain this banner.

    The regular expression you’ve used will bypass any page that has the stm_gdpr_cookie cookie, however, I’d recommend updating it to the following to also include the default cookies that the Cache Enabler plugin sets:

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

    Thread Starter davemktg86

    (@davemktg86)

    hi,
    thank you very much for your reply and and your suggest.
    So, if I exclude this cookie Ill exclude all my site pages, if I understand right.
    I have a cokkies plugin, can be better exclude this plugin(that manage cookie banner) instead the single cookie?

    regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude cookie’ is closed to new replies.