Gravity forms / Recaptcha / Autoptimize - somewhere it goes wrong

I am using Gravity Forms and have recently started using their Google Captcha integration. (We also use Autoptimize )

The problem I have is that de captcha validation goes wrong, but I am not sure where to look for the solution.

My question is: how can I get this to work?

(Autoptimize: We already have the aggregate inline JS turned off)

We also have expiry clauses in our htaccess. ExpiresByType application/javascript access plus 2 months ExpiresByType text/javascript access plus 2 months ExpiresByType text/html access plus 0 seconds

Is anyone having the same problem?

Topic plugin-gravity-forms captcha cache Wordpress google

Category Web


In Autoptimize, in the Javascript Options, there's a field to 'Exclude scripts from Autoptimize', you will add a script to the field. You will need to add a comma to the last script already in the field then add this after:

/recaptcha/api.js

Hopefully, this helps.

Best, Carm

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.