• Resolved nicooprat

    (@nicooprat)


    Hi

    For now, the plugin writes a .seopress-user-consent HTML element server-side with the button to give consent to cookies usage (before loading Google Analytics snippet for example).

    If the first user to see a page hasn’t yet given its permission, this page will be stored in cache (using W3 Total Cache but it’d be the same with every cache plugin) as is, so any other user visiting this page after him that will see the consent element, even if he gave its consent.

    So the logic for showing or not the element (and loading Google Analytics) should strictly be managed client-side in order to avoid this problem.

    It’s pretty important because we can’t be RGPD-compliant for now, or we have to disable all page cache which is not possible neither.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,
    the consent is handled by cookies and Ajax.
    There are 2 cookies:
    seopress-user-consent-close
    seopress-user-consent-accept

    And the JS file is located here: /wp-content/plugins/wp-seopress/assets/js

    Try to exclude it from cache to see if it better.
    Let me know if it works.

    Thread Starter nicooprat

    (@nicooprat)

    Looks like it’s working. Will keep an eye on it though! Thanks.

    For anyone interested, you can add “/wp-content/plugins/wp-seopress/assets/js” in the W3 Total Cache “browser cache” settings: /wp-admin/admin.php?page=w3tc_browsercache

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Thank you for your feedback.
    I’ll add that info somewhere for other users.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cookies consent not compatible with cache’ is closed to new replies.