On a site where a contact form is displayed at the bottom of each page, I implemented Varnish caching. To do so I had to deactivate Recaptcha to avoid 'no cache -must revalidate " headers.

I tried other antispam solutions such as Honeypot or Botcha, but Honeypot is not efficient (at least with time limit disabled), and Botcha also invalidates cache. I'd really prefer to go on with Recaptcha

I tried also Boost Captcha dev version : as per this related Varnish issue, it should be quite straightforward to make it work for Varnish. But this doesn't help, cache is still invalidated.

Did anybody could make Recaptcha work with Varnish ?

1 Answer 1


CAPTCHA and reCAPTCHA modules are incompatible with page caching.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.