Hey Benjamin,
Thank you for replying.
I am using Contact Form 7 with GeoIP Detection on almost every page,
and when the option to Disable Cache is enabled, no pages are cached.
I am using WP Rocket, or Autoptimize (I have 2 different sites with the same question).
What I meant in the question is: Is there a way just to exclude the GeoIP Detection from the cache, not the entire page.
Usually what I do with the WP Rocket is, I exclude /wp-contet/some-plugin/(.*).js and it none of the plugin files are cached.
But it did not work in this case.