How to solve the compatibility issue between WP Rocket and EU Cookie Law

Upon installing the EU Cookie Law plugin (which is listed on the WP-rocket site as compatible), I encountered an issue which turned out to be between EU Cookie Law and the WP Rocket caching plugin:
The cookie banner would not disappear when clicking the OK (acceptance) button.

This I could resolve by adding the /wp-content/plugins/eu-cookie-law/js/scripts.js script to the exclusions in Java concatenation in the WP Rocket settings.

After that though, the problem still persisted on mobile browsers.
This was resolved with the help of WP-rocket support: By enabling “Auto Block” and “Exclude Scripts” in the EU Cookie Law settings, the issue disappeared.

I’m posting it here so others may get this issue fixed as well!

This post was last modified on 27/01/2020 14:43

Boris Hoekmeijer

Share
Published by
Boris Hoekmeijer

Recent Posts

Agribusiness Service

Website en logo ontwerp voor Kookstudio Aalsmeer - voor uw kookclub, kookfeest of bedrijfsuitje in…

3 months ago

CardioThoracaal Chirurgie Zorgpad

Website en logo ontwerp voor Kookstudio Aalsmeer - voor uw kookclub, kookfeest of bedrijfsuitje in…

3 months ago

7huijzen Food Quality & Innovation Management

Website en logo ontwerp voor Kookstudio Aalsmeer - voor uw kookclub, kookfeest of bedrijfsuitje in…

5 months ago

Prime Housing

Website en logo ontwerp voor Kookstudio Aalsmeer - voor uw kookclub, kookfeest of bedrijfsuitje in…

5 months ago

Cor de Kroon

Website en logo ontwerp voor Kookstudio Aalsmeer - voor uw kookclub, kookfeest of bedrijfsuitje in…

7 months ago

Hoe leeg je de cache van je browser?

Building your WordPress website efficiently using the 10 tips I documented after years of experience.…

12 months ago