• Hi Peter

    I can’t seem to get this working with WP Supercache.

    The way I understand it the Cookie Banner CSS and JS are loaded only if the cookie is not set. If the cookie is set, the CSS and JS are not called.

    When WP Supercache runs its periodic preload all site it does not know about the cookie and pages are cached with the CSS and JS.

    The visitor see the banner on the first page they visit and clicks Accept. However on the subsequent pages the banner pops up again because the CSS and JS are present.

    This page may provide help https://ocaoimh.ie/wp-super-cache-developers/

    https://www.ads-software.com/plugins/cookie-banner/

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

    (@peterfeatherstone)

    Hi Jim,

    You are correct in your understanding.

    I will take a look into how WP Super Cache can work with cookies for you and update.

    Many thanks

    Peter

    This is not only a problem with WP Super Cache. Its a problem with all caching plugins wich build a static version of the page.

    If a user without accepted cookies are build the static version, every one will see the banner.

    I suggest to change the way to show the banner to:

    Enable it alway in the html code, but hide or show it by js based on the cookie?!

    Would this work?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incompatibility with WP Supercache’ is closed to new replies.