最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

cache - Gravity formsRecaptchaAutoptimize - somewhere it goes wrong

programmeradmin1浏览0评论

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?

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?

Share Improve this question asked Jun 17, 2020 at 15:33 thegirlinthecafethegirlinthecafe 561 silver badge9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

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

发布评论

评论列表(0)

  1. 暂无评论