Hi,
yes, it may be normal. Does this cause problems?
I didn’t check that plugin but will try asap
Wouldn’t an option to whitelist some scripts solve this?
I don’t think so – the EU cookie plugin prevents the cached version to be loaded, so isn’t about minification.
Anonymous User 4048828
(@anonymized-4048828)
Looking at WP Rocket’s code, it seems to check if EU Cookie Law is enabled *and* if it is set to auto-block scripts & iframes.
If so, then it will add ‘euCookie’ to a required list of cookies to be present before it generates caching files (see the wp-rocket/inc/3rd-party/eu-cookie-law.php file for details).
This makes sense, as it would prevent accidentally serving a cached page *with* code for setting cookies to someone who didn’t agree to it, or vice versa.
The problem on the other hand is that EU Cookie Law removes its own code from the pages if ‘euCookie’ has been set. So if you accept the cookie notification and then navigate to a yet-to-be cached page (which would then no longer tell you about cookies), the next visitor of that now-cached page will not see the cookie notice (because the previous visitor caused EU Cookie Law not to include that).