Support » Plugin: LiteSpeed Cache » Little Speed sometimes does not show me my cookie banner

  • Resolved Gruskel

    (@elevas33)


    Hello good morning, I have about 10 websites and only in 3 of them I use the Little Speed plugin. The problem is that in all of them I use the Complianz Premium cookie plugin and I have noticed that in some occasions in the pages that I use Little Speed the cookie plugin is not shown, which is problematic. I know this is due to the Little Speed plugin because when I clear the Little Speed Cache everything is fixed and the banner is displayed again but I have to be very careful. In my other sites I use W3 Total Cache or Super Cache and this does not happen to me and otherwise the configuration is the same, even Theme and plugins the only thing that varies is the cache plugin. Is there any way to prevent caching the plugin Complianz or create an exception? Thank you very much!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please try add this into top of your .htaccess

    <IfModule LiteSpeed>
    RewriteRule .* - [E=Cache-Vary:complianz_consent_status]
    </IfModule>

    then purge all , and see how it goes

    Best regards,

    Thread Starter Gruskel

    (@elevas33)

    Hello good thanks for your answer but this could not be done from the exceptions of the plugin ? and if you can do that is what you should put exactly ? thank you.

    Attached photo: https://ibb.co/NVbxyLy

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    no , the option in your screenshot is simply disable the cache when that cookie presents.

    add it at top of your .htaccess

    Best regards,

    Thread Starter Gruskel

    (@elevas33)

    Thank you very much, I just added it to see how it goes !

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please let us know how it goes 🙂

    Best regards,

    Thread Starter Gruskel

    (@elevas33)

    It doesn’t work, I’m sorry, this has me very worried, I can’t be checking every day the websites so that the cookie banner is shown by deleting the cache. Just delete the cache with litespeed solved … until after a few hours or days.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Best regards,

    Thread Starter Gruskel

    (@elevas33)

    These are the numbers of reports that occur on my 3 websites. Thanks!!

    NĂşmero de informe: KZSQDHYW

    Fecha de informe: 01/19/2021 19:38:39

    Report number: EJNXMILV

    Report date: 01/19/2021 19:38:44

    Numéro de rapport: HLLGUCJH

    Date de rapport: 01/19/2021 19:38:47

    Plugin Support qtwrk

    (@qtwrk)

    hmmmmm???

    I was checking the first one , but how come I didn’t even see any cookie bar when I bypass LiteSpeed Cache plugin ?

    Thread Starter Gruskel

    (@elevas33)

    Hello good morning, of course that complianz premium shows the banner geolocated, to appear must be entered from ip European. If you use a vpn with spanish ip it should come out.
    I had disconected geolocalization now in the plugin in the first one. Now you should be able to see it. Thanks ¡.

    Plugin Support qtwrk

    (@qtwrk)

    please try put that rule BEFORE

    # BEGIN LSCACHE

    then purge all

    Thread Starter Gruskel

    (@elevas33)

    Would that be okay?, I’m sorry for being so insistent, I’m just a little clumsy. Thanks !👇

    <IfModule LiteSpeed>
    RewriteRule .* – [E=Cache-Vary:complianz_consent_status]
    </IfModule>

    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* – [E=Cache-Control:no-autoflush]

    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php – [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###

    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ – [E=cache-control:max-age=86400]
    ### marker FAVICON end ###

    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclidt
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###

    </IfModule>
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    ### marker BROWSER CACHE start ###
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/pdf A31557600
    ExpiresByType image/x-icon A31557600
    ExpiresByType image/vnd.microsoft.icon A31557600
    ExpiresByType image/svg+xml A31557600

    ExpiresByType image/jpg A31557600
    ExpiresByType image/jpeg A31557600
    ExpiresByType image/png A31557600
    ExpiresByType image/gif A31557600
    ExpiresByType image/webp A31557600

    ExpiresByType video/ogg A31557600
    ExpiresByType audio/ogg A31557600
    ExpiresByType video/mp4 A31557600
    ExpiresByType video/webm A31557600

    ExpiresByType text/css A31557600
    ExpiresByType text/javascript A31557600
    ExpiresByType application/javascript A31557600
    ExpiresByType application/x-javascript A31557600

    ExpiresByType application/x-font-ttf A31557600
    ExpiresByType application/x-font-woff A31557600
    ExpiresByType application/font-woff A31557600
    ExpiresByType application/font-woff2 A31557600
    ExpiresByType application/vnd.ms-fontobject A31557600
    ExpiresByType font/ttf A31557600
    ExpiresByType font/woff A31557600
    ExpiresByType font/woff2 A31557600

    </IfModule>
    ### marker BROWSER CACHE end ###

    ## LITESPEED WP CACHE PLUGIN – Do not edit the contents of this block! ##
    # END NON_LSCACHE

    # BEGIN WordPress
    # Las directivas (líneas) entre «BEGIN WordPress» y «END WordPress» son
    # generadas dinámicamente y solo deberían ser modificadas mediante filtros de WordPress.
    # Cualquier cambio en las directivas que hay entre esos marcadores serán sobrescritas.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    # php — BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php56” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
    </IfModule>
    # php — END cPanel-generated handler, do not edit

    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file ‘/home/xxxxxxxxx/public_html/wordfence-waf.php’
    </IfModule>
    <IfModule lsapi_module>
    php_value auto_prepend_file ‘/home/xxxxxxxx/public_html/wordfence-waf.php’
    </IfModule>
    <Files “.user.ini”>
    <IfModule mod_authz_core.c>
    Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
    </IfModule>
    </Files>

    # END Wordfence WAF

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes, just like that

    do remember purge all

    and see how it goes

    Best regards

    Thread Starter Gruskel

    (@elevas33)

    Thanks! I’ll try it these days and see how it goes!

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.