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

Command icon 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

mallezie created an issue. See original summary.

mallezie’s picture

Status: Active » Needs review

  • japerry committed 3f71902 on 8.x-1.x
    Issue #3278316 by mallezie: Disable browser caching.
    
japerry’s picture

Status: Needs review » Fixed

I don't see when you'd want this to be cached by a browser, so this should be good. fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.