w3 total cache + gravity forms + recaptcha bug
-
Hi, thanks for the great plugin! ??
Faced a weird bug.
Trying to lazy-load recaptcha script from gravity forms plugin.
Have w3tc running (page cache + browser cache/http compression activated).For anonymous users everything working flawlessly – recaptcha is lazy-loaded:
<script type='text/javascript' defer='defer' id='gform_recaptcha-js' data-type="lazy" data-src="https://www.google.com/recaptcha/api.js?hl=en&ver=6b4d668e0ac6f0ef0a28cb86e37af1a3#038;render=explicit"></script>
But for logged-in users (w3tc caching disabled for logged-in) recaptcha is not loading:
<script type='text/javascript' defer='defer' id='gform_recaptcha-js' data-type="lazy" data-src="data:text/javascript;base64,"></script>
The bug occurs for logged-in users always with w3tc activated (no matter page caching/browser cache activated or not).
And for anonymous users recaptcha script is loading only when page caching and browser caching both activated in w3tc (well this is what I need, just describing the situation).
So, how can I fix recaptcha loading for logged-in users ( with w3tc activated), why “data-src” is broken?
thank you, Andy
- The topic ‘w3 total cache + gravity forms + recaptcha bug’ is closed to new replies.