{"id":9026,"date":"2024-01-26T12:21:51","date_gmt":"2024-01-26T11:21:51","guid":{"rendered":"https:\/\/www.myagileprivacy.com\/helpdesk\/how-to-configure-wp-rocket-with-my-agile-privacy\/"},"modified":"2026-01-15T10:53:07","modified_gmt":"2026-01-15T09:53:07","slug":"how-to-configure-wp-rocket-with-my-agile-privacy","status":"publish","type":"helpdesk","link":"https:\/\/www.myagileprivacy.com\/en\/helpdesk\/how-to-configure-wp-rocket-with-my-agile-privacy\/","title":{"rendered":"How to configure WP Rocket with My Agile Privacy\u00ae"},"content":{"rendered":"<p><strong>Caching plugins<\/strong> and <strong>optimization configurations<\/strong>, while boosting your site\u2019s speed, can sometimes interfere with other plugins if set too aggressively.<\/p>\n<p>For My Agile Privacy<sup>\u00ae<\/sup>, this can lead to issues like invalidated cookie blocking and script loading problems. Here\u2019s how to configure <strong>WP Rocket<\/strong> for optimal compatibility so you get <strong>both speed and GDPR compliance<\/strong>.<\/p>\n<h2>Excluding My Agile Privacy<sup>\u00ae<\/sup> CSS from optimizations<\/h2>\n<p>To ensure My Agile Privacy<sup>\u00ae<\/sup> functions correctly, exclude its CSS from minification, combination, and other optimizations in WP Rocket.<br \/>\nAdd the following lines to both the \u201cCSS Excluded\u201d and \u201cCSS Safelist\u201d fields in WP Rocket\u2019s settings:<\/p>\n<pre><code class=\"language-markup\" data-line=\"\">\/wp-content\/plugins\/myagileprivacy\/frontend\/css\/(.*).css\n\/wp-content\/plugins\/myagilepixel\/frontend\/css\/(.*).css<\/code><\/pre>\n<h2>Excluding My Agile Privacy<sup>\u00ae<\/sup> JavaScript<\/h2>\n<p>Also, exclude the following JavaScript paths from minification, combination, deferred loading, and deferred execution:<\/p>\n<pre><code class=\"language-markup\" data-line=\"\">\/wp-content\/plugins\/myagileprivacy\/frontend\/(.*).js\n\/wp-content\/plugins\/myagilepixel\/frontend\/(.*).js\n\/wp-content\/plugins\/myagilepixel\/local-cache\/my-agile-pixel\/(.*).js\n\/wp-content\/plugins\/myagileprivacy\/local-cache\/my-agile-privacy\/(.*).js<\/code><\/pre>\n<p>Paste these in the relevant JavaScript exclusion fields of WP Rocket.<\/p>\n<p>Always remember to save your changes after setting these exclusions. These configurations should guarantee that My Agile Privacy<sup>\u00ae<\/sup> works as intended.<\/p>\n<p>After making changes, always check your website to ensure everything works properly.<\/p>\n<p>In some cases, you may need to disable \u201cdefer javascript execution\u201d in the Optimization &gt; Javascript files section if you notice further issues.<\/p>\n<p>For any questions or issues, you can consult <a href=\"https:\/\/www.myagileprivacy.com\/en\/contact-us\/\" target=\"_blank\" rel=\"noopener\">our support<\/a> or reach out to WP Rocket\u2019s support team.<\/p>\n","protected":false},"template":"","categoria-helpdesk":[26],"versione-plugin":[30],"class_list":["post-9026","helpdesk","type-helpdesk","status-publish","hentry","categoria-helpdesk-caching","versione-plugin-wp-edition"],"acf":{"helpdesk_in_evidenza":false,"helpdesk_ordine":"","elenco_faq_articolo":[{"domanda":"Why is it necessary to configure WP Rocket for compatibility with My Agile Privacy\u00ae?","risposta":"Overly aggressive cache and optimization settings can invalidate My Agile Privacy\u00ae's preventive cookie blocking and prevent scripts from loading correctly, compromising both the plugin's functionality and GDPR compliance."},{"domanda":"Which My Agile Privacy\u00ae CSS strings should be excluded in WP Rocket?","risposta":"The following strings must be excluded: \/wp-content\/plugins\/myagileprivacy\/frontend\/css\/(.*).css and \/wp-content\/plugins\/myagilepixel\/frontend\/css\/(.*).css. These must be entered both in the 'Excluded CSS' field and in the 'CSS safelist'."},{"domanda":"Which My Agile Privacy\u00ae JavaScript files must be excluded from WP Rocket optimizations?","risposta":"The following JS files must be excluded: \/wp-content\/plugins\/myagileprivacy\/frontend\/(.*).js, \/wp-content\/plugins\/myagilepixel\/frontend\/(.*).js, \/wp-content\/plugins\/myagilepixel\/local-cache\/my-agile-pixel\/(.*).js and \/wp-content\/plugins\/myagileprivacy\/local-cache\/my-agile-privacy\/(.*).js."},{"domanda":"In which WP Rocket JavaScript settings should the My Agile Privacy\u00ae exclusions be entered?","risposta":"The JS exclusion strings must be copied into the fields related to: JS minification, JS combination, and deferred loading and\/or delayed execution."},{"domanda":"What needs to be done after entering the exclusions in WP Rocket?","risposta":"After entering the exclusions, you must always save the changes and test the site after each optimization or cache modification."},{"domanda":"What should be done if issues persist after configuring the exclusions?","risposta":"In some cases it may be necessary to disable the 'delay JavaScript execution' option in the File Optimization &gt; JavaScript section. If the problems persist, it is recommended to contact My Agile Privacy\u00ae support or WP Rocket support."}]},"_links":{"self":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/helpdesk\/9026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/helpdesk"}],"about":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/types\/helpdesk"}],"wp:attachment":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/media?parent=9026"}],"wp:term":[{"taxonomy":"categoria-helpdesk","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/categoria-helpdesk?post=9026"},{"taxonomy":"versione-plugin","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/versione-plugin?post=9026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}