Skip to content

Documentation

W3 Total Cache Compatibility

W3 Total Cache Compatibility

Last updated Mar 24, 2026

The Problem

W3 Total Cache minifies and combines JavaScript files on your site to improve page load speed. However, cookie consent banners need to load early - before other scripts run - to properly block tracking cookies and comply with privacy regulations like GDPR and CCPA.

When W3 Total Cache minifies or combines the Kukie.io banner script, the banner may not appear at all, or it may malfunction.

Symptoms

If W3 Total Cache is interfering with your cookie banner, you may notice:

  • The cookie banner does not appear on your site
  • The banner appears but consent choices do not work
  • JavaScript errors in the browser console related to the banner script
  • Cookies are set before the visitor has given consent

How to Fix

You need to exclude the Kukie.io banner script from W3 Total Cache's JavaScript minification. Go to Performance > Minify in your WordPress admin.

Step 1: Exclude from JS Minify

If JS minify is enabled, scroll down to the Never minify the following JS files field and add:

cdn.kukie.io

Step 2: Check Embed Settings

In the same Minify section, ensure the Kukie script is not being combined with other scripts. If JS embed type is set to combine files, the exclusion from Step 1 should be sufficient - W3 Total Cache will skip excluded files during combination.

Step 3: Clear Cache

After saving, go to Performance > Dashboard and click Empty All Caches. Then check your site in an incognito/private browser window to verify the banner appears correctly.

Tip: If you are using the Kukie WordPress plugin (version 1.2.0+), the banner script tag includes data-no-minify, data-no-defer, and data-no-delay attributes. W3 Total Cache may recognise these and skip the script automatically. If the banner still does not load, add the manual exclusion as described above.

Need Help?

If you have followed these steps and your banner is still not loading, contact our support team and include the URL of your site so we can investigate.

Was this helpful?