{"id":10154,"date":"2025-03-04T11:30:17","date_gmt":"2025-03-04T10:30:17","guid":{"rendered":"https:\/\/www.myagileprivacy.com\/?post_type=helpdesk&#038;p=10154"},"modified":"2026-01-15T11:01:31","modified_gmt":"2026-01-15T10:01:31","slug":"how-to-configure-litespeed-cache-with-my-agile-privacy","status":"publish","type":"helpdesk","link":"https:\/\/www.myagileprivacy.com\/en\/helpdesk\/how-to-configure-litespeed-cache-with-my-agile-privacy\/","title":{"rendered":"How to configure LiteSpeed Cache with My Agile Privacy\u00ae"},"content":{"rendered":"<p><b>LiteSpeed Cache<\/b> is a popular and powerful WordPress caching plugin, especially when used with LiteSpeed web servers. It offers a wide range of features to enhance site performance, including page caching, minification and combination of CSS and JavaScript files, deferred script loading, image optimization, database cleaning, and more.<\/p>\n<p>With proper configuration, LiteSpeed Cache can work seamlessly with My Agile Privacy<sup>\u00ae<\/sup>, ensuring both <b>optimal speed<\/b> and <b>full GDPR compliance<\/b>. Here\u2019s how to adjust LiteSpeed Cache to avoid conflicts with your privacy plugin:<\/p>\n<h2>Excluding JavaScript Files<\/h2>\n<p>To make sure My Agile Privacy<sup>\u00ae<\/sup> runs smoothly, you must exclude certain JavaScript files from LiteSpeed Cache\u2019s optimizations (both minification and deferred\/lazy loading).<br \/>\nFrom your WordPress admin, go to <b><i>LiteSpeed Cache &gt; Page Optimization<\/i><\/b>.<br \/>\nIn the <b>JS Excludes<\/b> section, paste the following (one path per line):<\/p>\n<pre><code class=\"language-markup\" data-line=\"\">\/wp-content\/plugins\/myagileprivacy\/frontend\/js\/my-agile-privacy-frontend.js\n\/wp-content\/plugins\/myagileprivacy\/frontend\/js\/my-agile-privacy-frontend.min.js\n\/wp-content\/plugins\/myagileprivacy\/frontend\/js\/anime.js\n\/wp-content\/plugins\/myagileprivacy\/frontend\/js\/anime.min.js\n\/wp-content\/plugins\/myagileprivacy\/local-cache\/my-agile-privacy\/cookie-shield.js\n\/wp-content\/plugins\/myagileprivacy\/local-cache\/my-agile-privacy\/MyAgilePrivacyIabTCF.js\n\/wp-content\/plugins\/myagilepixel\/frontend\/js\/myagilepixel.js\n\/wp-content\/plugins\/myagilepixel\/frontend\/js\/myagilepixel.min.js\n\/wp-content\/plugins\/myagilepixel\/local-cache\/my-agile-pixel\/cookie-shield.js\n\/wp-content\/plugins\/myagilepixel\/local-cache\/my-agile-pixel\/myagilepixel.js\n<\/code><\/pre>\n<p>On the same page, find the <b>JS Deferred\/Delayed Excludes<\/b> option and repeat the same list above.<br \/>\nBe sure to save your changes before continuing.<\/p>\n<h2>Excluding CSS Files<\/h2>\n<p>To avoid issues with how your cookie banner or privacy tools display, you\u2019ll need to exclude My Agile Privacy<sup>\u00ae<\/sup>\u2019s CSS files from optimization.<\/p>\n<p>In <i>LiteSpeed Cache &gt; Page Optimization<\/i>, open the <b>[9] CSS Optimization<\/b> tab.<br \/>\nUnder <b>CSS Excludes<\/b>, add the following (one per line):<\/p>\n<pre><code class=\"language-markdown\" data-line=\"\">\/wp-content\/plugins\/myagileprivacy\/frontend\/css\/my-agile-privacy-frontend.min.css\n\/wp-content\/plugins\/myagileprivacy\/frontend\/css\/my-agile-privacy-notification-bar.min.css\n\/wp-content\/plugins\/myagileprivacy\/frontend\/css\/animate.min.css\n\/wp-content\/plugins\/myagilepixel\/frontend\/css\/mapx.css\n\/wp-content\/plugins\/myagilepixel\/frontend\/css\/mapx.min.css<\/code><\/pre>\n<p>Again, don\u2019t forget to save.<\/p>\n<p>Depending on your LiteSpeed Cache version and settings, you may also need to disable these options for full compatibility:<\/p>\n<ul>\n<li>CSS minification<\/li>\n<li>Combine CSS<\/li>\n<li>Asynchronous CSS loading<\/li>\n<\/ul>\n<p>If you need assistance or encounter problems, feel free to contact our support team or reach out to LiteSpeed Cache\u2019s support.<\/p>\n","protected":false},"template":"","categoria-helpdesk":[26],"versione-plugin":[30],"class_list":["post-10154","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 exclude My Agile Privacy\u00ae JavaScript files from LiteSpeed Cache?","risposta":"It is necessary to exclude certain JavaScript files from LiteSpeed Cache optimizations (minification and deferred\/delayed loading) to ensure the correct functioning of My Agile Privacy\u00ae. Without these exclusions, conflicts may occur that compromise the functioning of the privacy plugin."},{"domanda":"Where do you enter JavaScript exclusions in LiteSpeed Cache?","risposta":"JavaScript exclusions are entered by going to LiteSpeed Cache &gt; Page Optimization. In the 'Excluded JS' section, enter one string per line with the paths of the files to be excluded. The same paths must also be entered in the 'Deferred\/Delayed JS Excludes' option."},{"domanda":"Which My Agile Privacy\u00ae CSS files need to be excluded from LiteSpeed Cache optimizations?","risposta":"The CSS files to be excluded are: my-agile-privacy-frontend.min.css, my-agile-privacy-notification-bar.min.css, animate.min.css, mapx.css and mapx.min.css, all found in the myagileprivacy and myagilepixel plugin folders."},{"domanda":"Where are CSS exclusions configured in LiteSpeed Cache?","risposta":"CSS exclusions are configured by going to LiteSpeed Cache &gt; Page Optimization, opening the [9] CSS Optimization tab and entering the file paths in the 'Excluded CSS' box, one per line."},{"domanda":"Which CSS options might need to be disabled in LiteSpeed Cache to avoid conflicts?","risposta":"Depending on the version and settings used, it may be necessary to disable the CSS Minification, CSS Combine\/Merge and CSS Asynchronous Loading options."},{"domanda":"Is it possible to use LiteSpeed Cache together with My Agile Privacy\u00ae without sacrificing performance?","risposta":"Yes, by correctly configuring the JavaScript and CSS exclusions as described in the article, it is possible to make LiteSpeed Cache work in synergy with My Agile Privacy\u00ae, achieving both high performance and full GDPR compliance."},{"domanda":"What should you do if you have doubts or problems with the configuration?","risposta":"If you have any doubts or problems, you can contact My Agile Privacy\u00ae support or LiteSpeed Cache support for assistance."}]},"_links":{"self":[{"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/helpdesk\/10154","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=10154"}],"wp:term":[{"taxonomy":"categoria-helpdesk","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/categoria-helpdesk?post=10154"},{"taxonomy":"versione-plugin","embeddable":true,"href":"https:\/\/www.myagileprivacy.com\/en\/wp-json\/wp\/v2\/versione-plugin?post=10154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}