Skip to content

The only Privacy solution for WordPress you can truly trust.

Do you use another cache plugin?

Last updated: October 30, 2026

Cache plugins are essential tools for boosting the performance of a WordPress site, reducing load times and optimizing resources. They provide features like page caching, minification and combination of CSS and JavaScript files, deferred script loading, and image optimization.

However, some of these optimizations can conflict with My Agile Privacy®, causing issues with proper functioning. To ensure both high performance and full compliance, certain files must be excluded from cache plugin optimizations. Here’s how to do it:

Do you use WP Rocket, LiteSpeed Cache, SiteGround Speed Optimizer or Autoptimize? Since My Agile Privacy® 3.4.1 the plugin keeps its own scripts out of their optimizations by itself (guides: WP Rocket, LiteSpeed Cache, SiteGround Speed Optimizer). The steps below are for other cache plugins, for earlier versions of My Agile Privacy®, or if you still notice problems.

Excluding JavaScript Files

Privacy-related JavaScript files should not be minified or loaded in a deferred or delayed way.
To ensure your cookie banner works correctly, follow these steps:

  • Access the cache plugin settings and go to the section for JavaScript optimization.
  • Find the options for minification and deferred/delayed script loading.
  • Enter the following files in the exclusion fields:
/wp-content/plugins/myagileprivacy/frontend/js/anime.min.js
/wp-content/plugins/myagileprivacy/frontend/js/youtube_enforced_privacy.js
/wp-content/plugins/myagileprivacy/frontend/js/plain/my-agile-privacy-frontend.js
/wp-content/plugins/myagileprivacy/frontend/js/plain/my-agile-privacy-frontend.min.js
/wp-content/plugins/myagileprivacy/local-cache/my-agile-privacy/cookie-shield.js
/wp-content/plugins/myagileprivacy/local-cache/my-agile-privacy/MyAgilePrivacyIabTCF.js
/wp-content/plugins/myagileprivacy-advanced-features/assets/js/map-advanced.js
/wp-content/plugins/myagilepixel/frontend/js/myagilepixel.js
/wp-content/plugins/myagilepixel/frontend/js/myagilepixel.min.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/myagilepixel.core.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/myagilepixel.ga4.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/myagilepixel.meta.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/cookie-shield.js

Excluding CSS Files

Exclude the following CSS files from optimization to ensure the cookie banner and privacy elements display correctly:

  • In your cache plugin, go to the CSS optimization section.
  • Add these files to the CSS exclusion fields:
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-reset.css
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-reset.min.css
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-frontend.css
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-frontend.min.css
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-notification-bar.css
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-notification-bar.min.css
/wp-content/plugins/myagileprivacy/frontend/css/animate.min.css
/wp-content/plugins/myagilepixel/frontend/css/mapx.css
/wp-content/plugins/myagilepixel/frontend/css/mapx.min.css

Depending on your plugin, you may also need to disable:

  • CSS minification
  • Combine CSS
  • Asynchronous CSS loading

If you still encounter issues with the cookie banner or other privacy functions, contact our support service or the support team for your cache plugin.

By following these simple steps, you can guarantee correct operation of your privacy management tools without sacrificing your website’s performance.

FAQ - Frequently Asked Questions