Cookie Consent module display problem with Litespeed cache
-
Hi,
After recent updates of Blocksy/WordPress/Litespeed cache, I have a problem with displaying Blocksy Cookie Consent module on my website.
The module sometimes appears on the page without styling (stretched text with a transparent background).
Desktop view: https://prnt.sc/cfYMsWh8-Jq0
View on mobile: https://prnt.sc/pZY_j1J_e-Ez
After clearing cache in litespeed, initially the consent module is displaying correctly. However after some time the styling problem appears on random pages.
I noticed that right after clearing the cache and entering the target website, the consent window displays correctly. However, if I enter the target page via another domain (where I have a 301 redirect) the target page starts to have a styling problem. Reloading the page does not help. If bad styling appears on the website, it will remain there even if I clear the browser cache. I noticed that the likelihood of bad styling increases if I am logged out of the WordPress admin panel. As long as I am logged in, there is no problem.
Sometimes the problem occurs in Firefox/Chrome on the desktop and sometimes it only appears on smartphones. In both browsers the error terminal is clean.
I use the Litespeed Cache plugin. After each Blocksy/Wordpress update, I clear all cookies, CSS/JS files, UCSS files, etc.
I did not change any settings in the Litespeed cache. With the current settings, cookie consent module was displayed correctly on older versions of Blocksy/WordPress/Litespeed cache.
As a test, I completely disabled Litespeed cache plug-in and the problem disappeared. This issue probably lies in some incompatibility of the Blocksy Cookie Consent module and the Litespeed cache plug-in.
WordPress: 6.5
Blocksy: 2.0.37 (with child theme)
LiteSpeed cache: 6.1
Below are the CSS (UCSS) files I have excluded:
main.min.css
back-to-top.min.css
wpforms
Could you please check it on your end and eventually provide some solution?
The page I need help with: [log in to see the link]
- The topic ‘Cookie Consent module display problem with Litespeed cache’ is closed to new replies.