Skip to content

The only Privacy solution for WordPress you can truly trust.

How to configure WP Rocket with My Agile Privacy®

Last updated: October 30, 2026

Caching plugins and optimization configurations, while boosting your site’s speed, can sometimes interfere with other plugins if set too aggressively.

For My Agile Privacy®, this can lead to issues like invalidated cookie blocking and script loading problems. Here’s how to configure WP Rocket for optimal compatibility so you get both speed and GDPR compliance.

Since My Agile Privacy® 3.4.1 the JavaScript exclusions are automatic: the plugin keeps its own scripts out of the WP Rocket optimizations by itself. The JavaScript steps below are for earlier versions, or if you still notice problems; the CSS exclusions are still recommended.

Excluding My Agile Privacy® CSS from optimizations

To ensure My Agile Privacy® functions correctly, exclude its CSS from minification, combination, and other optimizations in WP Rocket.
Add the following lines to both the “CSS Excluded” and “CSS Safelist” fields in WP Rocket’s settings:

/wp-content/plugins/myagileprivacy/frontend/css/(.*).css
/wp-content/plugins/myagilepixel/frontend/css/(.*).css

Excluding My Agile Privacy® JavaScript

Also, exclude the following JavaScript paths from minification, combination, deferred loading, and deferred execution:

/wp-content/plugins/myagileprivacy/frontend/(.*).js
/wp-content/plugins/myagilepixel/frontend/(.*).js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/(.*).js
/wp-content/plugins/myagileprivacy/local-cache/my-agile-privacy/(.*).js
/wp-content/plugins/myagileprivacy-advanced-features/assets/js/(.*).js

Paste these in the relevant JavaScript exclusion fields of WP Rocket.

Always remember to save your changes after setting these exclusions. These configurations should guarantee that My Agile Privacy® works as intended.

After making changes, always check your website to ensure everything works properly.

In some cases, you may need to disable “Delay JavaScript execution” in the File Optimization > JavaScript Files section if you notice further issues.

For any questions or issues, you can consult our support or reach out to WP Rocket’s support team.

FAQ - Frequently Asked Questions