• Resolved valdic

    (@valdic)


    Hello!

    How can make this module compatible with WP Super Cache module?
    If I accept the cookies with the cache cleared, the popup never appears again until I clear the module cache again.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Johan Jonk Stenström

    (@jonkastonka)

    I installed WP Super Cache, and the popup appears when I have not accepted cookies.

    Make sure to delete the cookie cookies_and_content_security_policy to get the popup again. If cookies are accepted that cookie is set, and the popup will not appear.

    Thread Starter valdic

    (@valdic)

    Hi Johan!

    Thank you, I don’t know what I did yesterday, but today everything seems to be working fine.

    🙂

    Plugin Author Johan Jonk Stenström

    (@jonkastonka)

    Probably the cache. 😉

    Hello,

    in fact, got the same problem : if a user refusing cookies navigates, wp total cache keep a “refused cookie version” and serve it.

    ex:
    refused cookie :
    jQuery(window).on("load", function() { cookiesAndContentPolicyErrorMessage('', 'http://mywebsite.me'); });

    instead of accepted cookies :
    jQuery(window).on("load", function() { cookiesAndContentPolicyErrorMessage('https://*.youtube.com/ https://*.youtube-nocookie.com/ https://youtu.be/ https://*.vimeo.com/ https://www.google.com/', 'http://mywebsite.me'); });

    So every visitor is not handled by his cookies-choices but by the first person who put in cache the page…

    Any configuration known to avoid that ? or a known compatible cache plugin ? 🙂

    Plugin Author Johan Jonk Stenström

    (@jonkastonka)

    You’re absolutely right! Using cache plugins that creates static files would do that. I’ve taken a look at this and might have a solution. That is to move that code to a separate file and give it a random parameter making it uncachable. Would you like to give it a try @canardwp, just email me at jonk@followmedarling.se and I’ll send you a beta version.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WP Super Cache compatibility?’ is closed to new replies.