Problem/Motivation
In our specific setup 'Drupal' -> Varnish -> Akamai -> clients behind internal proxies. We sometimes (not directly reproducable) see cached image captcha's showing up.
In some cases we see a 'broken' generated captcha image (random and rare), but when refreshing we don't see this solved, because the request is browser cached. Doing a hard refresh generates a new captcha, thus i'm blaming browser caching here.
But a hard refresh is for some or our users to technical, so i would like to avoid browser caching as much as possible for image_captchas.
Proposed resolution
Change the cache-control headers being sent, to mark the image_captcha as being not-browser-cached.
Remaining tasks
Make this configurable?
Data model changes
Issue fork captcha-3278316
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mallezieComment #5
japerryI don't see when you'd want this to be cached by a browser, so this should be good. fixed.