Find a way to allow page caching (including by CDNs) with captcha. AJAX, Lazy, ...?

Created on 23 September 2022, almost 2 years ago
Updated 10 May 2024, about 2 months ago

Problem/Motivation

#2492681: Properly disable page and render cache β†’ disabled page cache for regular Captchas (image & math). #3311443: [PP-1][2.x] Expose information about cacheability for each selectable captcha type β†’ at least try to inform the users about it.

But best would be to be able to cache pages even with a captcha present. So the question is, if there's no technical way to solve that, for example by loading the captcha container using AJAX instead of placing it on the page directly.

Could lazy builders help?

https://www.drupal.org/docs/drupal-apis/render-api/auto-placeholdering β†’
https://drupalsun.com/philipnorton42/2022/05/01/drupal-9-using-lazy-buil...
https://www.hashbangcode.com/article/drupal-10-using-lazy-builder-create...

Could this core issue help?
πŸ“Œ Form tokens are now rendered lazily, allow forms to opt in to be cacheable Needs review

Ideas welcome!

Steps to reproduce

Proposed resolution

Remaining tasks

  1. Discuss possible solutions
  2. Implement & write tests
  3. Release

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024