W3 Total Cache is a powerful tool for managing your WordPress site's cache in-depth and comprehensively. It offers features such as minifying CSS and JS files to reduce page size and improve loading speed.
However, aggressive caching and optimization settings might impact the preemptive blocking capabilities of My Agile Privacy, potentially compromising GDPR compliance.To optimize site speed and files while ensuring My Agile Privacy functions correctly, follow these simple steps:
First, from your site's admin panel, go to:
Performance > Minify
From here, you can set up all the configurations shown below.
On this page you will find some fields. The ones we are interested in in order to enable optimization of site resources, without compromising the operation of My Agile Privacy, are as follows:
- Never minify the following JS files.
- Never minify the following CSS files.
The following Javascript files (one per line, you can copy and paste the list below) must be excluded from minification for proper operation:
/wp-content/plugins/myagileprivacy/frontend/js/my-agile-privacy-frontend.js
/wp-content/plugins/myagileprivacy/frontend/js/anime.js
/wp-content/local-cache/my-agile-privacy/cookie-shield.js
/wp-content/local-cache/my-agile-privacy/MyAgilePrivacyIabTCF.js
/wp-content/plugins/myagileprivacy/local-cache/my-agile-privacy/cookie-shield.js
/wp-content/plugins/myagileprivacy/local-cache/my-agile-privacy/MyAgilePrivacyIabTCF.js
And the following CSS files (again, you can copy and paste the list below):
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-frontend.css
/wp-content/plugins/myagileprivacy/frontend/css/my-agile-privacy-notification-bar.css
/wp-content/plugins/myagileprivacy/frontend/css/animate.min.css
Javascript:
/wp-content/plugins/myagilepixel/frontend/js/myagilepixel.js
/wp-content/local-cache/my-agile-pixel/cookie-shield.js
/wp-content/local-cache/my-agile-pixel/myagilepixel.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/cookie-shield.js
/wp-content/plugins/myagilepixel/local-cache/my-agile-pixel/myagilepixel.js
Css:
/wp-content/plugins/myagilepixel/frontend/css/mapx.css
Remember to save your changes after configuring these exclusions to ensure that My Agile Privacy and My Agile Pixel function correctly.
Always test your site to confirm that it's working as expected after adjusting optimization or caching settings.
If you encounter any issues, you may need to refine the settings or seek assistance from our support team or W3 Total Cache's support.