• Resolved Generosus

    (@generosus)


    Our website displays a privacy banner that issues a cookie when a visitor accepts our GDPR terms and conditions. Unfortunately, your plugin’s Full Page Caching feature is caching the cookie thus deactivating the banner for all website visitors.

    Our theme is Avada. The affected cookie is called privacy_embeds. Any chance you guys can provide a code snippet for our functions.php file that will allow bypassing of cookies?

    Our temporary solution has been to add the cookie to your file template:

    wp-content/plugins/sg-cachepress/templates/cloudflare-worker.tpl

    Help appreciated. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ignat Georgiev

    (@ignatggeorgiev)

    Hey @generosus,

    The temporary solution that you have mentioned should work, however keep in mind that this logic will stop the cache for all users that have accepted the GDPR Terms and conditions pop-up, as they will have a cookie that bypasses all cache.

    We would suggest changing the solution for displaying and hiding the GDPR terms and conditions banner.

    Kind Regards,
    Ignat

    Thread Starter Generosus

    (@generosus)

    @ignatggeorgiev,

    Thank you for your valuable insight. Yeah, we definitely don’t want that to happen.

    We identified the root cause of our issue. Issue only occurs when logged in and using test devices sharing the same IP address.

    Again, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Code Snippet Needed to Bypass Cookies’ is closed to new replies.