Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | interdiff.txt | 871 bytes | znerol |
#2 | varnish_key_retrieval-2427451-2.patch | 8.77 KB | znerol |
#1 | varnish_key_retrieval-2427451-1.patch | 8.83 KB | znerol |
Comments
Comment #1
znerol CreditAttribution: znerol commentedThis 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.Comment #2
znerol CreditAttribution: znerol commentedCosmetics. Remove the custom resposne headers all at the same place.
Comment #5
znerol CreditAttribution: znerol commented