<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Inline JS variable cached anyways

[ad_1]

Replies: 2

Hello There!

I have difficulties to exclude an inline JS varable to be cached since it comes php.

window.Yco.countryCode="<?php echo $_SERVER["GEOIP_COUNTRY_CODE'] ?? ''; ?>';

I placed the string based exludes to all boxes https://prnt.sc/3IO4iRzgpCNI even added this to the inline script data-no-optimize="1" data-no-defer="1" , but I have no luck whit it. If I disable the plugin, then it works.

What do I do wrong?

Thank you!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer