Problem/Motivation

On multilingual sites which redirect to a URL-prefix by default, the key-retrieval callback /authcache-varnish-get-key is redirected also. This results in users with a session not being cached.

In order to work around the issue one could change the URL callback in example.vcl and hard-code the URL prefix (e.g. use /en/authcache-varnish-get-key where appropriate).

Proposed resolution

Explore a better solution.

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

znerol’s picture

Status: Active » Needs review
FileSize
8.83 KB

This patch adds a new VCL sub authcache_key_path. Multilingual sites (based on path prefix) as well as sites installed inside a subdirectory need to customize the key-path there.

znerol’s picture

Cosmetics. Remove the custom resposne headers all at the same place.

  • znerol committed 8ecebab on 7.x-2.x
    Issue #2427451 by znerol: Varnish key retrieval fails on multilingual...

  • znerol committed 22c74b2 on 7.x-2.x
    Issue #2427451 by znerol: Varnish key retrieval fails on multilingual...
znerol’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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